
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
eslint-plugin-smarter-tabs
Advanced tools
This plugin aims to enforce the usage of smart tabs, as defined in the emacs wiki:
- Tabs are only used at the beginning of lines. Everything else, like ASCII art and tables, should be formatted with spaces.
- Tabs are only used for expressing the indentation level. One tab per “block” — any remaining whitespace is spaces only.
To accomplish this, the plugin exports a single rule which issues a report in three cases:
Valid | Invalid |
---|---|
|
|
Valid | Invalid |
---|---|
|
|
Valid | Invalid |
---|---|
|
|
npm i -D eslint-plugin-smarter-tabs
This plugin exports a single rule called smarter-tabs
that you can use in your
.eslintrc.json
or eslintrc.js
:
{
"plugins": [
"smarter-tabs"
],
"rules": {
"smarter-tabs/smarter-tabs": "warn"
}
}
If you use the eslint:recommended
preset, you may also want to disable the
no-mixed-spaces-and-tabs
rule as it might clash with this plugin:
{
"rules": {
"no-mixed-spaces-and-tabs": "off",
"smarter-tabs/smarter-tabs": "warn"
}
}
Or you could pass it the smart-tabs
options:
{
"rules": {
"no-mixed-spaces-and-tabs": ["warn", "smart-tabs"],
"smarter-tabs/smarter-tabs": "warn"
}
}
See the full changelog here.
This software is distributed under the ISC license.
FAQs
A tiny ESLint plugin to enforce the usage of smart tabs.
We found that eslint-plugin-smarter-tabs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.