eslint-config-google
ESLint shareable config for the Google style
Last updated 3 months ago by philipwalton .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-config-google 
SYNC missed versions from official npm registry.

eslint-config-google Build Status

ESLint shareable config for the Google JavaScript style guide (ES2015+ version)

Installation

$ npm install --save-dev eslint eslint-config-google

Usage

Once the eslint-config-google package is installed, you can use it by specifying google in the extends section of your ESLint configuration.

{
  "extends": "google",
  "rules": {
    // Additional, per-project rules...
  }
}

Using the google config with eslint:recommended

There are several rules in the eslint:recommended ruleset that Google style is not opinionated about that you might want to enforce in your project.

To use Google style in conjunction with ESLint's recommended rule set, extend them both, making sure to list google last:

{
  "extends": ["eslint:recommended", "google"],
  "rules": {
    // Additional, per-project rules...
  }
}

To see how the google config compares with eslint:recommended, refer to the source code of index.js, which lists every ESLint rule along with whether (and how) it is enforced by the google config.

License

Apache-2 © Google

Current Tags

  • 0.12.0                                ...           latest (3 months ago)

15 Versions

  • 0.12.0                                ...           3 months ago
  • 0.11.0                                ...           6 months ago
  • 0.10.0                                ...           8 months ago
  • 0.9.1                                ...           2 years ago
  • 0.9.0                                ...           2 years ago
  • 0.8.1                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.7.1                                ...           2 years ago
  • 0.7.0                                ...           3 years ago
  • 0.6.0                                ...           3 years ago
  • 0.5.0                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Downloads
Today 154
This Week 735
This Month 3,528
Last Day 111
Last Week 1,000
Last Month 3,899
Dependencies (0)
None
Dev Dependencies (1)
Dependents (201)

Copyright 2014 - 2016 © taobao.org |