eslint-plugin-no-editor-code
v1.1.1
Published
Removes vscode code folding comments (#region, #regionend)
Downloads
19
Maintainers
Readme
eslint-plugin-no-editor-code
ESlint plugin to remove vscode folding comments. Originally prototyped by Kent C. Dodds.
Will complain about code like the following:
//#region foo
//#regionend
Install
npm install --save-dev eslint-plugin-no-editor-code
Use
Place the plugin and rule in your .eslintrc like so. Replace "warn" with "error" if you wanna get strict:
{
"plugins": [
"no-editor-code"
],
"rules": {
"no-editor-code/no-region": "warn"
}
}
Fix
This rule is auto-fixable! Run ESLint with --fix
to remove the comments.