@gilbarbara/eslint-config
v0.8.2
Published
Shared ESLint config
Downloads
497
Maintainers
Readme
@gilbarbara/eslint-config
Shared ESLint configuration.
Setup
Install the package:
$ npm install -D @gilbarbara/eslint-config prettier
Update your eslint configuration:
{
"extends": ["@gilbarbara/eslint-config"]
}
The default export contains most of the rules for ECMAScript 6+, TypeScript, and React.
If you don't need React, use @gilbarbara/eslint-config/base
Exports
@gilbarbara/eslint-config
Includes the base
and react
rules.
@gilbarbara/eslint-config/base
Includes ESLint, Airbnb Base, Import, Prettier, Simple Import Sort, Sort Destructure Keys, TypeScript, and Unicorn rules.
@gilbarbara/eslint-config/jest
Includes Jest and Jest DOM rules.
@gilbarbara/eslint-config/react
Includes Airbnb react/react-a11y and some custom rules.
@gilbarbara/eslint-config/testing-library
Includes Testing Library rules.
@gilbarbara/eslint-config/type-checking
Includes TypeScript strict type-checking rules.
@gilbarbara/eslint-config/vitest
Includes Vitest rules.
Read more on shared configurations.
This configuration is intended to provide consistent rules and pairs well with the @gilbarbara/prettier-config package.