This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslintrc
141 lines (137 loc) · 3.6 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
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
131
132
133
134
135
136
137
138
139
140
141
{
"parser": "babel-eslint",
"plugins": [
"react"
],
"env": {
"browser": true,
"node": true
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": false,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": false,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"jsx": true
},
"globals": {
},
"rules": {
"comma-dangle": [2, "never"],
"no-cond-assign" : 1,
"no-constant-condition": 1,
"no-control-regex": 1,
"no-debugger": 1,
"no-dupe-keys": 1,
"no-empty": 0,
"no-empty-character-class": 1,
"no-ex-assign": 1,
"no-extra-boolean-cast": 0,
"no-extra-parens": [2, "functions"],
"no-extra-semi": 1,
"no-func-assign": 1,
"no-undef": 2,
"no-inner-declarations": 0,
"no-invalid-regexp": 1,
"no-irregular-whitespace": 1,
"no-negated-in-lhs": 1,
"no-obj-calls": 1,
"no-regex-spaces": 1,
"no-sparse-arrays": 1,
"no-unreachable": 1,
"no-use-before-define": 0,
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"use-isnan": 1,
"valid-jsdoc": 0,
"valid-typeof": 1,
"space-unary-ops": [1, {"words": true, "nonwords": false}],
"camelcase": 1,
"curly": 0,
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"eol-last": 1,
"func-names": 0,
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"max-nested-callbacks": [2, 3],
"max-depth": [2, 5],
"max-params": [1, 4],
"complexity": [2, 7],
"new-cap": 1,
"new-parens": 1,
"no-array-constructor": 1,
"no-lonely-if": 0,
"no-mixed-spaces-and-tabs": 1,
"no-nested-ternary": 0,
"no-new": 0,
"no-new-object": 1,
"semi-spacing": 1,
"no-spaced-func": 1,
"no-ternary": 0,
"no-trailing-spaces": 1,
"no-multiple-empty-lines": [1, {"max": 2}],
"no-underscore-dangle": 0,
"no-path-concat": 0,
"no-alert": 0,
"one-var": 0,
"no-unused-expressions": 0,
"padded-blocks": [2, "never"],
"quotes": [1, "single"],
"quote-props": [2, "as-needed"],
"semi": 1,
"space-after-keywords": [1, "always"],
"space-before-blocks": [1, "always"],
"space-infix-ops": 1,
"space-return-throw-case": 1,
"spaced-comment": 2,
"object-curly-spacing": [2, "never"],
"wrap-regex": 0,
"yoda": 2,
"react/display-name": 1,
"react/jsx-boolean-value": 2,
"react/jsx-quotes": [2, "double"],
"react/jsx-no-undef": 2,
"react/jsx-sort-props": 0,
"react/jsx-sort-prop-types": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-did-mount-set-state": [2, "allow-in-func"],
"react/no-did-update-set-state": 2,
"react/no-multi-comp": 2,
"react/no-unknown-property": 2,
"react/prop-types": 2,
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
"react/wrap-multilines": 2,
"react/sort-comp": [2, {
"order": [
"displayName",
"mixins",
"statics",
"propTypes",
"getDefaultProps",
"getInitialState",
"componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"shouldComponentUpdate",
"componentWillUpdate",
"componentWillUnmount",
"/^on.+$/",
"/^get.+$/",
"/^render.+$/",
"render"
]
}]
}
}