cantonjs / eslint-config-cantonjs

ESLint shareable config for the Cantonjs JavaScript style guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Related Projects

License

MIT © Cantonjs

About

ESLint shareable config for the Cantonjs JavaScript style guide

License:MIT License


Languages

Language:JavaScript 100.0%