-
Notifications
You must be signed in to change notification settings - Fork 312
/
.eslintrc
86 lines (86 loc) · 2.38 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
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"prettier",
"prettier/flowtype",
"prettier/react",
"plugin:flowtype/recommended",
"plugin:react-hooks/recommended"
],
"env": {
"browser": true
},
"globals": {
"jest": true,
"chrome": true,
"clearInterval": true,
"clearTimeout": true,
"console": true,
"document": true,
"expect": true,
"Promise": true,
"setInterval": true,
"setTimeout": true,
"window": true,
"describe": true,
"test": true,
"it": true
},
"plugins": ["prettier", "react", "flowtype", "import"],
"rules": {
"no-new": 0,
"no-shadow": 0,
"prettier/prettier": ["error"],
"no-unused-vars": ["warn"],
"global-require": 0,
"quotes": ["warn", "single"],
"no-console": ["error", { "allow": ["warn", "error"] }],
"object-curly-spacing": ["error", "always"],
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"import/no-dynamic-require": 0,
"semi": [2, "never"],
"max-len": 0,
"consistent-return": ["warn", { "treatUndefinedAsUnspecified": true }],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"class-methods-use-this": ["warn"],
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/no-autofocus": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/heading-has-content": 0,
"jsx-a11y/anchor-has-content": 0,
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}
],
"react/no-array-index-key": 0,
"react/require-default-props": 0,
"react/no-unescaped-entities": 0,
"react/no-did-mount-set-state": 0,
"react/prefer-stateless-function": 0,
"react/jsx-filename-extension": 0,
"react/default-props-match-prop-types": 0,
"react/destructuring-assignment": 0,
"react/sort-comp": 0,
"react/button-has-type": 0,
"flowtype/generic-spacing": 0,
"no-param-reassign": ["warn"],
"no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
"no-await-in-loop": 0,
"jsx-a11y/alt-text": 0
},
"settings": {
"import/resolver": {
"babel-module": {}
}
}
}