-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
91 lines (91 loc) · 2.56 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"env": {
"browser": true,
"es2021": true
},
"ignorePatterns": ["*.js", "*.spec.ts", "*.spec.tsx"],
"extends": [
"eslint:recommended",
"airbnb"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"import/extensions": "off",
"linebreak-style": 0,
"semi": [
"error",
"never"
],
"arrow-parens": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx",
".tsx"
]
}
],
"implicit-arrow-linebreak": "off",
"@typescript-eslint/no-unused-vars": ["warn"],
"no-unused-vars": ["warn"],
"react/prop-types": "off",
"react/jsx-fragments": "off",
"jsx-a11y/label-has-associated-control": "off",
"no-shadow": "off",
"no-restricted-syntax": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"no-unneeded-ternary": "off",
"import/prefer-default-export": "off",
"react/jsx-props-no-spreading": "off",
"react/no-array-index-key": "off",
"no-nested-ternary": "off",
"consistent-return": "off",
// "max-len": ["", { "code": 120, "tabWidth": 2 }],
"max-len": "off",
"no-param-reassign": "off",
"array-callback-return": "off",
"react/no-did-update-set-state": "off",
"global-require": "off",
"camelcase": "off",
"no-constant-condition": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"eslint-disable-next-line": "off",
"react/no-deprecated": "off",
"no-prototype-builtins": "off",
"no-plusplus": "off",
"no-console": "off",
"no-use-before-define": "off",
"no-undef": "off",
"react-hooks/exhaustive-deps": "off",
"no-unused-expressions": "off",
"no-return-assign": "off",
"react/no-danger": "off",
"no-underscore-dangle": "off",
"arrow-body-style": "off",
"import/no-unresolved": "off",
"no-alert": "off",
"no-restricted-globals": "off",
"react/no-unescaped-entities": 0,
"react/self-closing-comp": 0,
"react/jsx-one-expression-per-line": 1,
"react/jsx-closing-tag-location": 1,
"react/button-has-type": "off",
"import/no-extraneous-dependencies": "off",
"react/require-default-props": "off",
"no-trailing-spaces": "warn",
"no-multi-spaces": "warn",
"space-infix-ops": ["warn", { "int32Hint": false }]
}
}