checks import paths according to FSD architecture GitHub: https://github.com/viacheslavorlov/eslint-plugin-fsd-architecture-checker
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
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
}
}
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 |