eslint-plugin-ecology9
v0.0.10
Published
eslint plugin for weaver ecology 9.
Downloads
1,338
Maintainers
Readme
eslint-plugin-ecology9
eslint plugin for weaver ecology 9.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-ecology9
:
$ npm install eslint-plugin-ecology9 --save-dev
Note: 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"