T01: add .eslintrc.json

This commit is contained in:
2026-06-21 20:32:49 +00:00
parent df16f08e22
commit 565adc54b7
+30
View File
@@ -0,0 +1,30 @@
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:react-refresh/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react-refresh",
"@typescript-eslint"
],
"rules": {
"react-refresh/only-export-components": [
"warn",
{ "allowConstantExport": true }
]
},
"ignorePatterns": ["dist", "node_modules", "coverage"]
}