plugin for production project
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-constructor-school-plugin
:
npm install eslint-plugin-constructor-school-plugin --save-dev
Add constructor-school-plugin
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"constructor-school-plugin"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"constructor-school-plugin/path-checker": "error"
}
}
TODO: Run eslint-doc-generator to generate the rules list.