eslint-config
Portable configuration for Eslint
Install
yarn add -D @bjeco/eslint-config eslint eslint-plugin-jest eslint-plugin-json-format eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-unicorn@19
Setup
Add an "eslintConfig"
parameter to the package.json file as an object containing an "extends" parameter:
{
"name": "my-library",
"version": "9000.0.1",
"eslintConfig": {
"extends": "@bjeco"
}
}
Reference
TODO
- [ ] Add VSCode plugin and settings for auto fix setup
- [ ] Go through existing recommended rule sets and extend them with additional rules
- [x] eslint core
- [x] json-format
- [ ] jsx-a11y
- [ ] react
- [x] react-hooks
- [x] unicorn
- [ ] Figure out what other lint plugins should be added here