
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socketβs new workflow scanning support.
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.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socketβs new workflow scanning support.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.