-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
65 lines (65 loc) · 1.4 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
{
"parser": "babel-eslint",
"plugins": [
"react"
],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"env": {
"browser": true,
"jasmine": true,
"jest": true,
"node": true
},
"globals": {
"StandardKey": true,
"Qt": true,
"Component": true,
"RQ": true,
"qsTr": true,
"__window__": true,
"__settings__": true,
"__DEV__": true,
"Promise": true,
"React": true,
"React$Element": true,
"React$Component": true,
"SyntheticClipboardEvent": true,
"SyntheticCompositionEvent": true,
"SyntheticDragEvent": true,
"SyntheticEvent": true,
"SyntheticFocusEvent": true,
"SyntheticInputEvent": true,
"SyntheticKeyboardEvent": true,
"SyntheticMouseEvent": true,
"SyntheticTouchEvent": true,
"SyntheticUIEvent": true,
"SyntheticWheelEvent": true
},
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"no-var": 2,
"prefer-const": 2,
"no-undef": 2,
"no-unused-vars": 2,
"no-console": 1,
"new-cap": 1,
"strict": 0,
"comma-dangle": ["error", {
"objects": "always-multiline",
"arrays": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore",
}],
},
"settings": {
"import/resolver": "webpack"
}
}