0.1.7 • Published 2 years ago
eslint-plugin-absolute-imports-checker v0.1.7
eslint-plugin-absolute-imports-checker
ESLint plugin that checks absolute and relative paths with Feature Sliced Design architecture.
Plugin was created with generator-eslint.
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-absolute-imports-checker:
npm install eslint-plugin-absolute-imports-checker --save-devUsage
Add absolute-imports-checker to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["absolute-imports-checker"]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"absolute-imports-checker/path-checker": 2
}
}