eslint-config-plat

0.1.0 • Public • Published

ESLint shareable config for the Plat JavaScript style guide


Installation

# NPM
$ npm install --save-dev eslint eslint-config-plat
# Yarn
$ 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.

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

Using the plat config with eslint:recommended

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:

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

License

Provided under the terms of the MIT License.

Copyright © 2017, PLAT.

Package Sidebar

Install

npm i eslint-config-plat

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • plat-dev