0.0.10 • Published 5 years ago
eslint-plugin-ecology9 v0.0.10
eslint-plugin-ecology9
eslint plugin for weaver ecology 9.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-ecology9:
$ npm install eslint-plugin-ecology9 --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-ecology9 globally.
Usage
Add ecology9 to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"ecology9"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"ecology9/rule-name": [2, 10, false] // option[0] loop parent, option[1] fix
}
}Supported Rules
- Fill in provided rules here
enforce-component-ecid Component's props needs to have an "ecId"