eslint-config-google
ESLint shareable config for the Google style
npm downloads npm version npm license
eslint-config-google類似パッケージ:
npmのダウンロードトレンド
3 年
🌟 eslint-config-googleのREADME.mdにリアルタイム使用チャートを表示するには、以下のコードをコピーしてください。
## Usage Trend
[![Usage Trend of eslint-config-google](https://npm-compare.com/img/npm-trend/THREE_YEARS/eslint-config-google.png)](https://npm-compare.com/eslint-config-google#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 eslint-config-googleのREADME.mdにGitHub Starsトレンドチャートを表示するには、以下のコードをコピーしてください。
## GitHub Stars Trend
[![GitHub Stars Trend of eslint-config-google](https://npm-compare.com/img/github-trend/eslint-config-google.png)](https://npm-compare.com/eslint-config-google)
統計詳細
パッケージ
ダウンロード数
Stars
サイズ
Issues
公開日時
ライセンス
eslint-config-google469,2481,768-156年前Apache-2.0
eslint-config-google のREADME

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