项目作者: plat-dev

项目描述 :
ESLint shareable config for the PLAT JavaScript style guide
高级语言: JavaScript
项目地址: git://github.com/plat-dev/eslint-config-plat.git
创建时间: 2017-01-15T06:00:03Z
项目社区:https://github.com/plat-dev/eslint-config-plat

开源协议:MIT License

下载



eslint-config-plat



ESLint shareable config for the Plat JavaScript style guide


Installation

  1. # NPM
  2. $ npm install --save-dev eslint eslint-config-plat
  3. # Yarn
  4. $ yarn add -D eslint eslint-config-plat

Usage

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

  1. {
  2. "extends": "plat",
  3. "rules": {
  4. // Additional, per-project rules...
  5. }
  6. }

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

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

  1. {
  2. "extends": ["eslint:recommended", "plat"],
  3. "rules": {
  4. // Additional, per-project rules...
  5. }
  6. }

License

Provided under the terms of the MIT License.

Copyright © 2017, PLAT.