eslint-plugin-enforce-absolute-imports
v1.0.3
Published
Enforce absolute imports in your project using eslint
Downloads
4
Maintainers
Readme
eslint-plugin-enforce-absolute-imports
Getting Started
Use the recommended configuration
"extends": ["plugin:enforce-absolute-imports/recommended"]
Rules
enforce-absolute-imports/imports
This rule enforces absolute imports.
...
"enforce-absolute-imports/imports": [<enabled>, { allowShorterRelative: <boolean> }]
...
Options
allowShorterRelative
(default:false
): Allow relative imports that have fewer segments than the absolute import.