eslint-plugin-gb
v2.0.0
Published
## Description
Downloads
71
Maintainers
Readme
eslint-plugin-gb
Description
My favorite eslint configurations
Installation
$ npm i --save-dev typescript
$ npm i --save-dev eslint
$ npm i --save-dev @typescript-eslint/parser
$ npm i --save-dev @typescript-eslint/eslint-plugin
$ npm i --save-dev eslint-plugin-gb
Usage
// .eslintrc.js
module.exports = {
plugins: ['gb'],
extends: ['plugin:gb/recommended'],
};
recommended
config
| Rule | Setting | | ----------------------------------------------------------------------------------------------------------------------- | --------------------------------- | | @typescript-eslint/consistent-type-imports | warn | | @typescript-eslint/explicit-member-accessibility | warn | | @typescript-eslint/explicit-module-boundary-types | warn | | @typescript-eslint/member-ordering | warn (with alphabetical ordering) | | @typescript-eslint/no-unused-vars | off |
recommended-with-type-checking
config
all of the recommended
rules and also the following.
| Rule | Setting | | --------------------------------------------------------------------------------------------------- | ------- | | @typescript-eslint/no-floating-promises | warn | | @typescript-eslint/unbound-method | error |