plugin for prod project to check if import is correct
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-arttraf-eslint-fsd-plugin
:
npm install eslint-plugin-arttraf-eslint-fsd-plugin --save-dev
Add arttraf-eslint-fsd-plugin
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"arttraf-eslint-fsd-plugin"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"arttraf-eslint-fsd-plugin/rule-name": 2
}
}
TODO: Run eslint-doc-generator to generate the rules list.