@belsrc/eslint-config-react
v2.1.1
Published
ESLint config for React
Downloads
5
Readme
@belsrc/eslint-config-react
An opinionated collection of ESLint plugin configs I use in other projects.
(Part of eslint-config-belsrc mono repo)
- eslint-plugin-fp-jxl
- eslint-plugin-import
- eslint-plugin-jsx-a11y
- eslint-plugin-promise
- eslint-plugin-react
- eslint-plugin-react-hooks
- eslint-plugin-simple-import-sort
Install
npm i -D @belsrc/eslint-config-react
Use
// .eslintrc.js
module.exports = {
extends: ['@belsrc/eslint-config-react'],
};
The package also contains a usable prettier config.
// .prettierrc.js
const config = require('@belsrc/eslint-config-react/.prettierrc');
module.exports = config;
TODO
- add
eslint-plugin-jest
- add
eslint-plugin-security
(is it maintained enough to use?)
Peer Dependencies
- eslint:
>= 6.6.0
- prettier:
>=1.19.0
- babel-eslint:
>=10.0.0