eslint-plugin-relative-path-validator
v0.0.4
Published
the plugin checks import declaration and prioritize relative paths if possible
Downloads
5
Maintainers
Readme
eslint-plugin-relative-path-validator
the plugin checks import declaration and prioritize relative paths if possible
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-relative-path-validator
:
npm install eslint-plugin-relative-path-validator --save-dev
Usage
Add relative-path-validator
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"relative-path-validator"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"relative-path-validator/rule-name": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.