npm.io
1.1.1 • Published 8 years ago

eslint-plugin-no-editor-code

Licence
ISC
Version
1.1.1
Deps
0
Vulns
0
Weekly
0
Stars
7

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.

Keywords