@bitpas/eslint-config
v0.6.3
Published
Bit Pas' ESLint config
Downloads
16
Maintainers
Readme
@bitpas/eslint-config
Unstable until v1. Updates may include breaking changes. Use at your own risk.
Shared ESLint config.
The default export contains all rules for ES2021, React, and TypeScript.
Installation
- Install config
npm install --save-dev @bitpas/eslint-config
Manual peer dependency installation may be required depending on your npm version.
npm versions 1, 2, and 7 will automatically install peerDependencies if they are not explicitly depended upon higher in the dependency tree. For npm versions 3 through 6, you will receive a warning that the peerDependency is not installed instead.
- Install base peer dependencies
npm install --save-dev eslint eslint-plugin-import
- Install React peer dependencies
npm install --save-dev eslint-plugin-{react,react-hooks,jsx-a11y}
- Install TypeScript peer dependencies
npm install --save-dev @typescript-eslint/{parser,eslint-plugin}
Usage
Add "extends": "@bitpas"
to your .eslintrc
.