-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
97 lines (97 loc) · 2.1 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
90
91
92
93
94
95
96
97
{
"ecmaFeatures":{
"arrowFunctions":true,
"blockBindings":true,
"classes":true,
"defaultParams":true,
"forOf":true,
"generators":true,
"globalReturn":true,
"jsx":true,
"modules":true,
"regexUFlag":true,
"regexYFlag":true,
"restParams":true,
"spread":true,
"superInFunctions":true,
"templateStrings":true,
"unicodeCodePointEscapes":true
},
"env":{
"amd":true,
"browser":true,
"es6":true,
"jquery":true
},
"globals":{
"_":true,
"$":true,
"jQuery":true,
"Marionnette":true,
"module":true,
"PRODUCTION":false,
"React":true,
"window.jQuery":true
},
"parser":"babel-eslint",
"plugins":[
"react"
],
"rules":{
"arrow-parens":2,
"arrow-spacing":[2, {
"after":true,
"before":true
}],
"brace-style":[2, "1tbs", {
"allowSingleLine":true
}],
"comma-dangle":2,
"constructor-super":2,
"curly":2,
"eqeqeq":2,
// "newline-after-var":1,
"generator-star-spacing":2,
"no-alert":1,
"no-array-constructor":2,
"no-caller":1,
"no-class-assign":2,
"no-console":1,
"no-const-assign":2,
"no-dupe-args":2,
"no-dupe-class-members":2,
"no-dupe-keys":2,
"no-empty":2,
"no-eval":2,
"no-implied-eval":2,
"no-native-reassign":2,
"no-new-func":2,
"no-new-object":2,
"no-obj-calls":2,
"no-proto":2,
"no-this-before-super":2,
"no-undef":2,
// "no-undefined":2,
"no-unexpected-multiline":1,
"no-unreachable":2,
"no-use-before-define":2,
"no-useless-call":2,
"no-useless-concat":2,
"no-unused-expressions":2,
"no-unused-vars":2,
"quotes":[2, "single"],
// "prefer-arrow-callback":1,
"react/jsx-no-duplicate-props":2,
"react/jsx-no-undef":1,
"react/jsx-sort-prop-types":2,
"react/jsx-sort-props":0,
"react/no-did-mount-set-state":1,
"react/no-did-update-set-state":1,
"react/sort-comp":0,
"semi":[2, "always"],
"space-after-keywords":[2, "always"],
"space-in-parens":[2, "never"],
"space-return-throw-case":2,
"valid-typeof":2
}
}