1.0.0-b • Published 6 years ago
eslint-plugin-import-levels v1.0.0-b
eslint-plugin-import-levels
Prohibited import from wrong level
Prohibited
Mobile -> Desktop
Mobile -> General
Desktop -> Mobile
Desktop -> General
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-import-levels:
$ npm install eslint-plugin-import-levels --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-import-levels globally.
Usage
Add import-levels to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"import-levels"
]
}