3.0.0 • Published 2 years ago

@poool/eslint-plugin v3.0.0

Weekly downloads
1,917
License
MIT
Repository
github
Last release
2 years ago

Poool ESLint Plugin

Custom set of ESLint rules we need and enforce at Poool

Installation

yarn add eslint @poool/eslint-plugin --dev

Usage

Load the plugin in your .eslintrc.json file:

{
  "plugins": ["@poool/eslint-plugin"]
}

Finally, enable all the rules you would like to use (don't forget to disable the corresponding core rule!):

{
  "rules": {
    "no-extra-parens": "off",
    "@poool/no-extra-parens": "error",
    "no-unneeded-ternary": "off",
    "@poool/no-unneeded-ternary": "error"
  }
}

Rules

NameDescriptionDocs
@poool/camelcasecamelcase, but doesn't complain about optional chainingdocumentation
@poool/no-extra-parensno-extra-parens, but allows conditional spreads to be wrapped with parenthesesdocumentation
@poool/no-unneeded-ternaryno-unneeded-ternary, but with an extra condition to disallow ternary expressions as expression statementsdocumentation

Shareable configurations

Recommended

This plugin exports a recommended configuration that enforces some of our rules.

To enable this configuration use the extends property in your .eslintrc.json config file:

{
  "extends": ["plugin:@poool/eslint-plugin/recommended"]
}
3.0.0

2 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.5.2

3 years ago

1.5.0

4 years ago

1.4.2

5 years ago

1.4.0

5 years ago

1.3.3

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.0

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago