-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
130 lines (130 loc) · 3.1 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"allowImportExportEverywhere": true,
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"airbnb"
],
"globals": {
"ENV": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
},
"webpack": {
"config": "./webpack.config.dev.js"
}
}
},
"rules": {
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "none",
"ignoreRestSiblings": true
}
],
"no-unused-expressions": [
"error", { "allowShortCircuit": true }
],
"no-plusplus": "off",
"camelcase": [
"error", {
"allow": [
"^IO_", "^message_"
]
}
],
"no-lonely-if": "off",
"no-continue": "off",
"no-eval": "off",
"no-bitwise": "off",
"class-methods-use-this": "off",
"prefer-destructuring": [
"error",
{
"array": false,
"object": true
},
{
"enforceForRenamedProperties": false
}
],
"no-shadow": "off",
"no-param-reassign": "off",
"prefer-const": [
"error", {
"destructuring": "all",
"ignoreReadBeforeAssign": false
}
],
"import/extensions": "off",
"import": "off",
"import/order": "off",
"no-use-before-define": "off",
"import/prefer-default-export": "off",
"jsx-a11y/media-has-caption": "off",
"react/jsx-indent": [
"error", 2
],
"react/no-array-index-key": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"global-require": "off",
"operator-linebreak": [ "error", "after" ],
"react/destructuring-assignment": [
"error", "always", { "ignoreClassFields": true }
],
"react/prop-types": "off",
"react/forbid-prop-types": [
"error", {
"forbid": [ "any" ],
"checkContextTypes": false,
"checkChildContextTypes": false
}
],
"semi": [0],
"react/jsx-filename-extension": [0],
"jsx-a11y/anchor-is-valid": [0],
"react/prefer-stateless-function": 0,
"no-console": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/aria-role": 0,
"react/button-has-type": 0,
"no-return-assign": 0,
"no-debugger": 0,
"react/jsx-props-no-spreading": 0,
"react/static-property-placement": 0,
"react/state-in-constructor": 0,
"arrow-parens": ["off"],
"jsx-quotes": ["off"],
"quotes": ["off"],
"no-else-return": ["off"],
"dot-notation": ["off"],
"no-unneeded-ternary": ["off"],
"consistent-return": ["off"],
"jsx-one-expression-per-line": ["off"],
"comma-dangle": ["off"],
"react/jsx-no-target-blank": ["off"],
"react/jsx-boolean-value": ["off"],
"react/no-danger": ["off"],
"jsx-a11y/mouse-events-have-key-events": ["off"],
"import/no-cycle": "off",
"max-classes-per-file": ["off"]
}
}