@hyoban/eslint-config-react
Use this with prettier, typescript, tailwindcss.
Install
ni -D eslint @hyoban/eslint-config-react
Usage
package.json
{
"scripts": {
"lint": "eslint --fix ."
},
"eslintConfig": {
"extends": ["@hyoban/eslint-config-react"]
}
}
.vscode/settings.json
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": ["typescript", "typescriptreact"],
"typescript.preferences.importModuleSpecifier": "non-relative",
// optional
"eslint.workingDirectories": ["./packages/web"]
}