Remove /*eslint-disable comma-dangle*/ comments
Commit 9d3f7f30ba3ba55cbfd98b26fdd2cc7289716650 reverses the rule, so these comments aren't needed anymore.
Benjamin Woodruff committed
Jun 2, 2015 at 13:30 UTC
95edacc994e19431a34c50871fee060ef7fe73f0
4 files changed
+25
-29
npm-react-codemod/transforms/class.js
+23
-21
@@ -8,8 +8,6 @@
8
*
9
*/
10
11
-/*eslint-disable comma-dangle*/
12
-
11
'use strict';
12
13
function updateReactCreateClassToES6(file, api, options) {
@@ -256,12 +254,14 @@ function updateReactCreateClassToES6(file, api, options) {
254
const createSuperCall = shouldAddSuperCall =>
255
!shouldAddSuperCall ?
256
[] :
259
- [j.expressionStatement(
260
- j.callExpression(
261
- j.identifier('super'),
262
- [j.identifier('props'), j.identifier('context')]
263
- )
264
- )];
257
+ [
258
+ j.expressionStatement(
259
+ j.callExpression(
260
+ j.identifier('super'),
261
+ [j.identifier('props'), j.identifier('context')]
262
+ )
263
+ ),
264
+ ];
265
266
const updatePropsAccess = getInitialState =>
267
getInitialState ?
@@ -323,20 +323,22 @@ function updateReactCreateClassToES6(file, api, options) {
323
}
324
325
const hasPropsAccess = updatePropsAccess(getInitialState);
326
- return [createMethodDefinition({
327
- key: j.identifier('constructor'),
328
- value: j.functionExpression(
329
- null,
330
- createConstructorArgs(shouldAddSuperClass, hasPropsAccess),
331
- j.blockStatement(
332
- [].concat(
333
- createSuperCall(shouldAddSuperClass),
334
- autobindFunctions.map(createBindAssignment),
335
- inlineGetInitialState(getInitialState)
326
+ return [
327
+ createMethodDefinition({
328
+ key: j.identifier('constructor'),
329
+ value: j.functionExpression(
330
+ null,
331
+ createConstructorArgs(shouldAddSuperClass, hasPropsAccess),
332
+ j.blockStatement(
333
+ [].concat(
334
+ createSuperCall(shouldAddSuperClass),
335
+ autobindFunctions.map(createBindAssignment),
336
+ inlineGetInitialState(getInitialState)
337
+ )
338
)
337
- )
338
- ),
339
- })];
339
+ ),
340
+ }),
341
+ ];
342
};
343
344
const createES6Class = (
npm-react-codemod/transforms/findDOMNode.js
-2
@@ -8,8 +8,6 @@
8
*
9
*/
10
11
-/*eslint-disable comma-dangle*/
12
-
11
'use strict';
12
13
function getDOMNodeToFindDOMNode(file, api, options) {
npm-react-codemod/transforms/pure-render-mixin.js
+2
-4
@@ -8,8 +8,6 @@
8
*
9
*/
10
11
-/*eslint-disable comma-dangle*/
12
-
11
'use strict';
12
13
function removePureRenderMixin(file, api, options) {
@@ -47,10 +45,10 @@ function removePureRenderMixin(file, api, options) {
45
[
46
j.thisExpression(),
47
j.identifier(NEXT_PROPS),
50
- j.identifier(NEXT_STATE)
48
+ j.identifier(NEXT_STATE),
49
]
50
)
53
- )
51
+ ),
52
])
53
);
54
npm-react-codemod/transforms/utils/ReactUtils.js
-2
@@ -8,8 +8,6 @@
8
*
9
*/
10
11
-/*eslint-disable comma-dangle*/
12
-
11
'use strict';
12
13
module.exports = function(j) {