ESLint shareable config for the PLAT JavaScript style guide
ESLint shareable config for the Plat JavaScript style guide
# NPM
$ npm install --save-dev eslint eslint-config-plat
# Yarn
$ yarn add -D eslint eslint-config-plat
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...
}
}
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...
}
}
Provided under the terms of the MIT License.
Copyright © 2017, PLAT.