eslint-plugin-paths-validation
v0.0.1
Published
ESLint plugin for feature-sliced absolute and relative paths validation
Downloads
3
Maintainers
Readme
eslint-plugin-paths-validation
ESLint plugin for feature-sliced absolute and relative paths validation
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-paths-validation
:
npm install eslint-plugin-paths-validation --save-dev
Usage
Add paths-validation
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"paths-validation"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"paths-validation/rule-name": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.