-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
89 lines (83 loc) · 1.84 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
# eslint
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"standard",
"standard-react"
],
"env": {
"es6": true,
"node": true,
"browser": true
},
"parserOptions": {
"ecmaFeatures": {
"modules": true,
"jsx": true,
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"globalReturn": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true
}
},
"plugins": [
"react",
"import",
"standard",
"babel",
"promise"
],
"globals" : {
"__DEV__" : false,
"__PROD__" : false,
"__DEBUG__" : false,
"__DEBUG_NEW_WINDOW__" : false,
"__BASENAME__" : false
},
"rules": {
"no-console": 0,
"camelcase": 0,
"arrow-parens": 0,
"comma-dangle": 2,
"eqeqeq": 2,
"indent": [1, 2, {
"SwitchCase": 1
}],
"linebreak-style": [2, "unix"],
"prefer-arrow-callback": 2,
"prefer-const": 1,
"quotes": [2, "single"],
"semi": [2, "never"],
"strict": [2, "never"],
"yoda": [2, "never"],
"jsx-quotes": [2, "prefer-double"],
"no-alert": 2,
"no-await-in-loop": 2,
"no-const-assign": 2,
"no-else-return": 2,
"no-this-before-super": 2,
"no-unexpected-multiline": 2,
"no-undef": 2,
"no-var": 2,
"no-warning-comments": 1,
"react/jsx-uses-react": 2,
"react/jsx-curly-spacing": 0
}
}