Skip to content

solo-md/eslint-plugin-es-jacket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-es-jacket

Code restrictions for ES6 and beyond

Installation (global)

You'll first need to install ESLint:

$ npm i -g eslint

Next, install eslint-plugin-es-jacket:

$ npm i -g eslint-plugin-es-jacket

Note: If you installed the plugin locally (without using the -g flag) then your global ESLint will not have access to it.

Usage

Add es-jacket to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "es-jacket"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "es-jacket/no-class-declaration": [ "error" ],
        "es-jacket/no-export-named-declaration": [ "error" ],
        "es-jacket/no-import-declaration": [ "error" ],
        "es-jacket/no-module-keyword": [ "error" ],
    }
}

Supported Rules

  • no-class-declaration
  • no-export-named-declaration
  • no-import-declaration
  • no-module-keyword

About

Custom eslint rules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published