55 lines
1.1 KiB
JSON
55 lines
1.1 KiB
JSON
{
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
}
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"overrides": [
|
|
{
|
|
"files": ["*.ts", "*.tsx"]
|
|
}
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": 12,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": ["react", "@typescript-eslint"],
|
|
"rules": {
|
|
"react/jsx-uses-react": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
"sort-imports": [
|
|
0,
|
|
{
|
|
"ignoreCase": true,
|
|
"allowSeparatedGroups": true,
|
|
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
|
|
}
|
|
],
|
|
"@typescript-eslint/no-explicit-any": ["warn"],
|
|
"@typescript-eslint/no-inferrable-types": [0],
|
|
"indent": [
|
|
"error",
|
|
2,
|
|
{
|
|
"SwitchCase": 1
|
|
}
|
|
],
|
|
"linebreak-style": ["warn", "unix"],
|
|
"quotes": ["error", "double", { "avoidEscape": true }],
|
|
"semi": ["error", "always"]
|
|
}
|
|
}
|