-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
53 lines (53 loc) · 2.23 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended"
],
"ignorePatterns": [ "dist" ],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": [ "./tsconfig.json", "./*.config.ts" ]
},
"plugins": [
"react-refresh"
],
"rules": {
"react-refresh/only-export-components": [ "warn", { "allowConstantExport": true } ],
"no-eval": [ "error" ],
"semi": [ "error", "always" ],
"indent": [ "warn", 4 ],
"array-bracket-spacing": [ "warn", "always" ],
"object-curly-spacing": [ "warn", "always" ],
"space-before-function-paren": [ "warn", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
} ],
"curly": [ "warn", "multi-or-nest", "consistent" ],
"brace-style": [ "warn", "stroustrup" ],
"@typescript-eslint/no-empty-function": [ "warn", { "allow": [ "private-constructors" ] } ],
"react/display-name": [ "off" ],
"nonblock-statement-body-position": [ "error", "below" ],
"@typescript-eslint/member-delimiter-style": [ "error", { "singleline": { "delimiter": "comma" } } ],
"@typescript-eslint/consistent-type-imports": [ "error", { "fixStyle": "inline-type-imports" } ],
"comma-dangle": [ "warn", "always-multiline" ],
"react-hooks/exhaustive-deps": [ "warn" ],
"quotes": [ "warn", "single", { "allowTemplateLiterals": true } ],
"jsx-quotes": [ "warn", "prefer-single" ],
"@typescript-eslint/no-confusing-void-expression": [ "error", { "ignoreArrowShorthand": true } ],
"@typescript-eslint/consistent-type-definitions": [ "warn", "type" ],
"@typescript-eslint/unbound-method": [ "error", { "ignoreStatic": true } ],
"@typescript-eslint/no-unused-vars": [ "error", { "destructuredArrayIgnorePattern": "^_" } ]
}
}