0.0.2 • Published 4 years ago
eslint-plugin-ei v0.0.2
eslint-plugin-ei
eslint rules for ei
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-ei:
npm install eslint-plugin-ei --save-devUsage
Add ei to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"ei"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"ei/add-function-comment": ["warn", {
"require": {
// Default configuration
"FunctionExpression": true,
"MethodDefinition": true,
"ArrowFunctionExpression": true,
"FunctionDeclaration": true,
"skipComments": true,
"skipBlankLines": true,
"minLineCountForComments": 30,
},
}]
}
}Supported Rules
- Fill in provided rules here