Skip to content

PartyLich/eslint-config-partylich

 
 

Repository files navigation

eslint-config-partylich Build Status

ESLint shareable config based on the Google JavaScript style guide (ES2015+ version) with modifications to taste

Installation

$ npm install --save-dev eslint eslint-config-partylich

Usage

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

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

Using the partylich config with eslint:recommended

There are several rules in the eslint:recommended ruleset that Google style (and PartyLich) are not opinionated about that you might want to enforce in your project.

To use this style config in conjunction with ESLint's recommended rule set, extend them both, making sure to list partylich last:

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

To see how the partylich 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 partylich config.

License

MIT © PartyLich

About

ESLint shareable config based on the Google JavaScript style guide

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%