plugin for production project
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-mt-fsd-path-checker
:
npm install eslint-plugin-mt-fsd-path-checker --save-dev
Add mt-fsd-path-checker
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"mt-fsd-path-checker"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"mt-fsd-path-checker/path-checker": 2
}
}
TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).
TODO: Run eslint-doc-generator to generate the rules list.