eslint-config-widen
Widen's shared ESLint config.
Installation
yarn add -D eslint eslint-{config,plugin}-widen eslint-plugin-sort @babel/{core,eslint-parser}
yarn add -D @typescript-eslint/{eslint-plugin,parser}
yarn add -D eslint-plugin-{react,react-hooks,jsx-a11y}
yarn add -D eslint-plugin-playwright
yarn add -D eslint-plugin-jest
Usage
In your .eslintrc
file, add the following four entries to your extends list.
If you don't need a specific configuration, simply remove it from the list.
{
"extends": ["widen", "widen/typescript", "widen/react"],
"overrides": [
{
"files": ["e2e/**"],
"extends": "widen/playwright"
},
{
"files": ["frontend/**/*.spec.js"],
"extends": "widen/jest"
}
]
}