ESLint shareable config for the Cantonjs
$ npm install --save-dev eslint eslint-config-cantonjs-resolver
Once the eslint-config-cantonjs-resolver
package is installed, you can use it by specifying cantonjs-resolver
in the extends
section of your ESLint configuration.
{
"extends": "cantonjs-resolver",
"rules": {
// Additional, per-project rules...
}
}
-
extends: "cantonjs-resolver"
eslint-config-cantonjs + import/resolver -
extends: "cantonjs-resolver/base"
the same withextends: "cantonjs-resolver"
-
extends: "cantonjs-resolver/react-resolve"
base
+react
+ import/resolver
MIT © Cantonjs