-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
executable file
·75 lines (75 loc) · 1.99 KB
/
.eslintrc
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"jsx": true,
"useJSXTextNode": true
},
"settings": {
"react": {
"version": "detect"
}
},
"extends": [
"standard",
"standard-react",
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": ["@typescript-eslint", "react-hooks"],
"env": {
"browser": true,
"node": true
},
"ignorePatterns": ["docs/**/*"],
"rules": {
"n/no-callback-literal": "off",
"react/display-name": "off",
"semi": "off",
"no-use-before-define": "off",
"no-multiple-empty-lines": "off",
"no-undef": "off",
"multiline-ternary": "off",
"indent": ["error", 2, { "SwitchCase": 1 }],
"jsx-quotes": ["error", "prefer-double"],
"comma-dangle": ["error", "only-multiline"],
"react/jsx-handler-names": "off",
"react/jsx-fragments": ["error", "syntax"],
"react/jsx-wrap-multilines": [
"error",
{ "declaration": "parens-new-line" }
],
"operator-linebreak": ["error", "before"],
"standard/no-callback-literal": "off"
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": { "delimiter": "none" },
"singleline": { "delimiter": "comma", "requireLast": false }
}],
"@typescript-eslint/indent": ["error", 2, { "SwitchCase": 1 }],
"no-unused-vars": "off",
"dot-notation": "off",
"quote-props": "off",
"no-useless-rename": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true
}
],
"react/prop-types": "off",
"react/jsx-no-target-blank": [
"error",
{ "enforceDynamicLinks": "always" }
],
"react-hooks/rules-of-hooks": "error"
}
}
]
}