0.0.12 • Published 2 years ago
eslint-plugin-fsd-architecture-check v0.0.12
eslint-plugin-fsd-architecture-check
Eslint plugin for FSD architecture
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-fsd-architecture-check:
npm install eslint-plugin-fsd-architecture-check --save-devUsage
Add fsd-architecture-check to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"fsd-architecture-check"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"fsd-architecture-check/rule-name": 2
}
}Rules
| Name | Description |
|---|---|
| layer-imports | Description |
| path-check | FSD path checker |
| public-api-imports | Description |