eslint-plugin-fsd-architecture-checker
v0.0.21
Published
checks import paths according to FSD architecture
Downloads
23
Maintainers
Readme
eslint-plugin-fsd-architecture-checker
checks import paths according to FSD architecture GitHub: https://github.com/viacheslavorlov/eslint-plugin-fsd-architecture-checker
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-fsd-architecture-checker
:
npm install eslint-plugin-fsd-architecture-checker --save-dev
Usage
Add fsd-architecture-checker
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"fsd-architecture-checker"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"fsd-architecture-checker/rule-name": 2
}
}
Rules
If you have trouble with opening this rules documentation visit GitHub: https://github.com/viacheslavorlov/eslint-plugin-fsd-architecture-checker
| Name | Description | |:-----------------------------------------------------------------|:----------------------------------------------------------| | import-path-checker | checks if modules imported according to FSD rules | | public-api-import | imports from other modules should be only from public api | | layers-import-order.md | force make imports only from lower layers |