Skip to content

Commit b939c0c

Browse files
committed
Adapt to 1.0.0
1 parent e10781f commit b939c0c

19 files changed

+538
-102
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**/node_modules/
2+
**/build/
3+
lib

.eslintrc

Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,18 @@
55
"mocha": true,
66
"es6": true
77
},
8-
98
"ecmaFeatures": {
109
"jsx": true,
1110
"templateStrings": true,
1211
"superInFunctions": false,
1312
"classes": true,
1413
"modules": true
1514
},
16-
1715
"parser": "babel-eslint",
18-
1916
"plugins": [
17+
"babel",
2018
"react"
2119
],
22-
2320
"rules": {
2421
"block-scoped-var": [0],
2522
"brace-style": [2, "1tbs", {
@@ -31,7 +28,7 @@
3128
"comma-style": [2, "last"],
3229
"complexity": [0, 11],
3330
"constructor-super": [2],
34-
"consistent-return": [2],
31+
"consistent-return": [0],
3532
"consistent-this": [0, "that"],
3633
"curly": [2, "multi-line"],
3734
"default-case": [2],
@@ -43,7 +40,6 @@
4340
"func-names": [0],
4441
"func-style": [0, "declaration"],
4542
"generator-star-spacing": [2, "after"],
46-
"strict": [2, "always"],
4743
"guard-for-in": [0],
4844
"handle-callback-err": [0],
4945
"key-spacing": [2, {
@@ -57,9 +53,7 @@
5753
"max-params": [0, 3],
5854
"max-statements": [0, 10],
5955
"new-parens": [2],
60-
"new-cap": [2, {
61-
"capIsNewExceptions": ["CSSModules", "ToInteger", "ToObject", "ToPrimitive", "ToUint32"]
62-
}],
56+
"new-cap": [0],
6357
"newline-after-var": [0],
6458
"no-alert": [2],
6559
"no-array-constructor": [2],
@@ -80,7 +74,6 @@
8074
"no-else-return": [0],
8175
"no-empty": [2],
8276
"no-empty-character-class": [2],
83-
"no-empty-label": [2],
8477
"no-eq-null": [0],
8578
"no-eval": [2],
8679
"no-ex-assign": [2],
@@ -150,7 +143,9 @@
150143
"no-undefined": [0],
151144
"no-underscore-dangle": [0],
152145
"no-unreachable": [2],
153-
"no-unused-expressions": [2],
146+
"no-unused-expressions": [2, {
147+
"allowShortCircuit": true
148+
}],
154149
"no-unused-vars": [1, {
155150
"vars": "all",
156151
"args": "after-used"
@@ -165,22 +160,16 @@
165160
"no-with": [2],
166161
"one-var": [0],
167162
"operator-assignment": [0, "always"],
168-
"operator-linebreak": [2, "after"],
163+
"operator-linebreak": [2, "before"],
169164
"padded-blocks": [0],
170165
"prefer-const": [2],
166+
"prefer-spread": [2],
171167
"quote-props": [0],
172168
"radix": [0],
173169
"semi": [2],
174-
"semi-spacing": [2, {
175-
"before": false,
176-
"after": true
177-
}],
178170
"sort-vars": [0],
179-
"space-after-keywords": [2, "always"],
180-
"space-before-function-paren": [2, {
181-
"anonymous": "always",
182-
"named": "always"
183-
}],
171+
"keyword-spacing": [2, {"after": true}],
172+
"space-before-function-paren": [2, { "anonymous": "always", "named": "always" }],
184173
"space-before-blocks": [0, "always"],
185174
"space-in-brackets": [0, "never", {
186175
"singleValue": true,
@@ -192,7 +181,6 @@
192181
}],
193182
"space-in-parens": [2, "never"],
194183
"space-infix-ops": [2],
195-
"space-return-throw-case": [2],
196184
"space-unary-ops": [2, {
197185
"words": true,
198186
"nonwords": false
@@ -208,8 +196,30 @@
208196
"yoda": [2, "never", {
209197
"exceptRange": true
210198
}],
211-
"react/jsx-uses-react": [2],
212-
"react/jsx-uses-vars": [2],
213-
"react/react-in-jsx-scope": [2]
199+
"babel/object-shorthand": [2],
200+
"react/display-name": 0,
201+
"react/jsx-boolean-value": 1,
202+
"react/jsx-closing-bracket-location": 0,
203+
"react/jsx-curly-spacing": 1,
204+
"react/jsx-max-props-per-line": 0,
205+
"react/jsx-indent-props": 0,
206+
"react/jsx-no-duplicate-props": 1,
207+
"react/jsx-no-undef": 1,
208+
"react/jsx-pascal-case": 1,
209+
"react/sort-prop-types": 1,
210+
"react/jsx-sort-props": 0,
211+
"react/jsx-uses-react": 1,
212+
"react/jsx-uses-vars": 1,
213+
"react/no-danger": 0,
214+
"react/no-did-mount-set-state": 0,
215+
"react/no-did-update-set-state": 1,
216+
"react/no-multi-comp": 0,
217+
"react/no-unknown-property": 1,
218+
"react/prop-types": [2, {"ignore": ["onMouseDown", "onTouchStart"]}],
219+
"react/react-in-jsx-scope": 1,
220+
"react/require-extension": 1,
221+
"react/self-closing-comp": 1,
222+
"react/sort-comp": 1,
223+
"react/wrap-multilines": 1
214224
}
215225
}

0 commit comments

Comments
 (0)