Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-cantonjs

cantonjs26MIT2.2.0

ESLint shareable config for the Cantonjs JavaScript style guide

eslint, lint, javascript

readme

eslint-config-cantonjs

Build Status Dependencies License

ESLint shareable config for the Cantonjs

Installation

NPM

$ 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

$ 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

Usage

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...
  }
}

Configures / Extends

  • extends: "cantonjs" basic usage
  • extends: "cantonjs/base" the same with extends: "cantonjs"
  • extends: "cantonjs/react" base + react

License

MIT © Cantonjs