1.0.0-rc.1 • Published 7 years ago
eslint-plugin-es-jacket v1.0.0-rc.1
eslint-plugin-es-jacket
Code restrictions for ES6 and beyond
Installation (global)
You'll first need to install ESLint:
$ npm i -g eslintNext, install eslint-plugin-es-jacket:
$ npm i -g eslint-plugin-es-jacketNote: 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
1.0.0-rc.1
7 years ago
1.0.0
7 years ago