eslint-plugin-egatsak-fsd-plugin
v0.0.14
Published
eslint plugin for checking absolute & relative imports for React feature-sliced design projects
Downloads
5
Maintainers
Readme
eslint-plugin-egatsak-fsd-plugin
eslint plugin for checking absolute & relative imports for React feature-sliced design projects
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-egatsak-fsd-plugin
:
npm install eslint-plugin-egatsak-fsd-plugin --save-dev
Usage
Add egatsak-fsd-plugin
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["egatsak-fsd-plugin"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"egatsak-fsd-plugin/path-checker": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.