eslint-plugin-babun4ek-fsd-plugin
v0.0.17
Published
plugin for poduction project
Maintainers
Readme
eslint-plugin-babun4ek-fsd-plugin
This is an eslint-plugin to check for paths paths according to the methodology FSD.
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-babun4ek-fsd-plugin:
npm install eslint-plugin-babun4ek-fsd-plugin --save-devUsage
Add eslint-plugin-babun4ek-fsd-plugin to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"babun4ek-fsd-plugin"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"babun4ek-fsd-plugin/path-checker": "error"
}
}Rules
| Name | Description | | :----------------------------------------------------------- | :------------------------------------------ | | layer-imports-checker | FSD layers-imports checker | | path-checker | feature-sliced design relative path checker | | public-api-imports | FSD public-api-imports checker |
