32 lines
892 B
JSON
32 lines
892 B
JSON
{
|
|
"root": true,
|
|
"env": { "browser": true, "es2020": true },
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"@typescript-eslint/recommended",
|
|
"plugin:react-hooks/recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:jsx-a11y/recommended"
|
|
],
|
|
"ignorePatterns": ["dist", ".eslintrc.cjs"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": ["react-refresh", "jsx-a11y"],
|
|
"rules": {
|
|
"react-refresh/only-export-components": [
|
|
"warn",
|
|
{ "allowConstantExport": true }
|
|
],
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/prop-types": "off",
|
|
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
"@typescript-eslint/explicit-function-return-type": "warn",
|
|
"jsx-a11y/anchor-is-valid": "error",
|
|
"jsx-a11y/alt-text": "error",
|
|
"no-console": "warn"
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
}
|
|
}
|
|
} |