eslint-plugin-cross-import
v0.0.4
Published
[](https://www.npmjs.com/package/eslint-plugin-deprecate)
Downloads
463
Readme
eslint-plugin-deprecate
This plugin helps you to refactor your codebase.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-cross-import
:
$ npm install eslint-plugin-cross-import --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-deprecate
globally.
Usage
Add cross-import
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"cross-import"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"cross-import/rule-name": 2
}
}
Supported Rules
- cross-import/no-cross-import: Forbids cross import usage