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