eslint: react-refresh, react-hooks

This commit is contained in:
Martti Malmi
2024-01-04 11:54:58 +02:00
parent b143520901
commit 2a2c713486
22 changed files with 62 additions and 27 deletions

View File

@ -1,7 +1,12 @@
module.exports = {
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react/recommended"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "formatjs"],
plugins: ["@typescript-eslint", "formatjs", "react-refresh"],
rules: {
"formatjs/enforce-id": [
"error",
@ -10,6 +15,8 @@ module.exports = {
},
],
"react/react-in-jsx-scope": "off",
"react-hooks/exhaustive-deps": "off",
"react-refresh/only-export-components": "warn",
},
root: true,
ignorePatterns: ["build/", "*.test.ts", "*.js"],