2023-02-12 22:48:12 +08:00
|
|
|
{
|
2025-10-04 20:14:14 +02:00
|
|
|
"env": {
|
|
|
|
|
"es2021": true,
|
|
|
|
|
"node": true
|
|
|
|
|
},
|
|
|
|
|
"extends": [
|
|
|
|
|
"eslint:recommended",
|
|
|
|
|
"plugin:react/recommended",
|
|
|
|
|
"plugin:@typescript-eslint/recommended"
|
|
|
|
|
],
|
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
|
"parserOptions": {
|
|
|
|
|
"ecmaFeatures": {
|
|
|
|
|
"jsx": true
|
2023-02-12 22:48:12 +08:00
|
|
|
},
|
2025-10-04 20:14:14 +02:00
|
|
|
"ecmaVersion": "latest",
|
|
|
|
|
"sourceType": "module"
|
|
|
|
|
},
|
|
|
|
|
"plugins": ["react", "@typescript-eslint"],
|
|
|
|
|
"settings": {
|
|
|
|
|
"react": {
|
|
|
|
|
"version": "detect"
|
2023-02-12 22:48:12 +08:00
|
|
|
}
|
2025-10-04 20:14:14 +02:00
|
|
|
},
|
|
|
|
|
"rules": {
|
|
|
|
|
"indent": ["error", 4, { "SwitchCase": 1 }],
|
|
|
|
|
"quotes": ["error", "double"],
|
|
|
|
|
"semi": ["error", "always"],
|
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
|
|
|
"@typescript-eslint/triple-slash-reference": "off",
|
|
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
|
|
|
"react/react-in-jsx-scope": "off",
|
|
|
|
|
"eol-last": "error"
|
|
|
|
|
}
|
2023-02-12 22:48:12 +08:00
|
|
|
}
|