Skip to content

lukebelliveau/eslint-plugin-no-editor-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •