Catches accidental usage of components and packages that the team has decided to migrate away from!
- No
classnames
dependency for components. Refactor that component! - These deprecated components from
eyeem-components
:
Text
Checkbox
Input
Use the ones from @eyeem-ui
instead!
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-eyeem-refactor
:
$ npm install eslint-plugin-eyeem-refactor --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-eyeem-refactor
globally.
Add eyeem-refactor
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["eyeem-refactor"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"eyeem-refactor/no-deprecated-imports": 2,
"eyeem-refactor/no-classnames-module": 2
}
}