0.2.0 • Published 4 years ago
eslint-config-fliplet-client v0.2.0
ESLint config for JS code in Fliplet apps
Installation
$ npm install --save-dev eslint fliplet-eslint-config-client
Usage
Once the fliplet-eslint-config-client
package is installed, you can use it by specifying fliplet-client
in the extends
section of your ESLint configuration.
{
"extends": "fliplet-client",
"rules": {
// Additional, per-project rules...
}
}
Using the fliplet-client
config with eslint:recommended
There are several rules in the eslint:recommended
ruleset that Fliplet style is not opinionated about that you might want to enforce in your project.
To use Fliplet style in conjunction with ESLint's recommended rule set, extend them both, making sure to list fliplet-client
last:
{
"extends": ["eslint:recommended", "fliplet-client"],
"rules": {
// Additional, per-project rules...
}
}
To see how the fliplet-client
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 fliplet-client
config.
License
Apache-2 © Fliplet
0.2.0
4 years ago