-
Notifications
You must be signed in to change notification settings - Fork 281
/
.eslintrc
75 lines (75 loc) · 2.25 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": {
"project": "./tsconfig.json",
},
"plugins": [
"@typescript-eslint",
],
"extends": [
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
],
"env": {
"browser": true,
"node": true,
},
"globals": {
"describe": true,
"it": true,
},
"settings": {
"react": {
"pragma": "React",
"version": "17",
},
"import/resolver": {
"node": {},
},
},
"rules": {
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/no-use-before-define": "warn",
"@typescript-eslint/no-shadow": "warn",
"import/no-extraneous-dependencies": "off",
"max-len": ["warn", 200],
"max-classes-per-file": "off",
"default-case": "warn",
"consistent-return": "warn",
"class-methods-use-this": "off",
"no-restricted-syntax": ["error", "WithStatement"],
"no-restricted-properties": "warn",
"no-param-reassign": "warn",
"no-continue": "off",
"no-await-in-loop": "off",
"no-mixed-operators": "warn",
"no-bitwise": "warn",
"no-prototype-builtins": "warn",
"semi-style": ["error", "first"],
"import/prefer-default-export": "off",
"import/no-cycle": "warn",
"react/prop-types": "warn",
"react/destructuring-assignment": "warn",
"react/button-has-type": "warn",
"react/sort-comp": "warn",
"react/no-access-state-in-setstate": "warn",
"react/state-in-constructor": "warn",
"react/no-find-dom-node": "warn",
"react/no-unused-prop-types": "warn",
"react/require-default-props": "warn",
"react/prefer-stateless-function": "warn",
"react/jsx-props-no-spreading": "warn",
"jsx-a11y/anchor-is-valid": "warn",
"jsx-a11y/click-events-have-key-events": "warn",
"jsx-a11y/mouse-events-have-key-events": "warn",
"jsx-a11y/no-static-element-interactions": "warn",
"jsx-a11y/no-noninteractive-element-interactions": "warn",
"jsx-a11y/alt-text": "warn",
"jsx-a11y/label-has-associated-control": "warn",
"react/static-property-placement": "warn",
},
}