/eslint-plugin-no-editor-code

Eslint plugin to remove vscode folding comments. Prototyped by Kent C. Dodds.

Primary LanguageJavaScript

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.