eslint-config-bigbrain
v2.1.0
Published
Just my personal eslint config setup for regular javascript or typescript. I don't know why I called it bigbrain.
Downloads
10
Readme
eslint-config-bigbrain
Just my personal eslint config setup for regular javascript or typescript. I don't know why I called it bigbrain.
This config isn't really designed with pure javascript projects in mind even though a javascript only config is shipped. The base shared config is included for linting of any regular .js
files that might be included in a project.
shared
The shared config is used by all actually exported configs.
- eslint recommended defaults plus a few extra rules
- unicorn recommended defaults with a few minor additions
- sonarjs just recommended
- import with import sorting enabled
- prettier
default
Regular javascript only eslint rules.
node
Standard JS but with extra rules for node.
- shared
- node
yarn add -D eslint-plugin-node
typescript
Shared rules extended with typescript-eslint rules.
- shared
- @typescript-eslint
react
Extends typescript rules with react and jsx rules. Required plugins are included as optional peerDependencies to avoid annoying warnings when you aren't using react rules.
yarn add -D eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks
- typescript
- react
- react-hooks
- jsx-a11y