diff --git a/lib/config/all.js b/lib/config/all.js index d5a23e4b..c1ef2a79 100644 --- a/lib/config/all.js +++ b/lib/config/all.js @@ -57,6 +57,6 @@ module.exports = { require('./rules/promise'), require('./rules/react'), require('./rules/shopify'), - require('./rules/sort-class-members') + require('./rules/sort-class-members'), ), }; diff --git a/lib/config/core.js b/lib/config/core.js index 21ca2372..ebe172f2 100644 --- a/lib/config/core.js +++ b/lib/config/core.js @@ -16,6 +16,6 @@ module.exports = { require('./rules/shopify'), require('./rules/strict-mode'), require('./rules/stylistic-issues'), - require('./rules/variables') + require('./rules/variables'), ), }; diff --git a/lib/config/esnext.js b/lib/config/esnext.js index b18c3be3..246dbc7e 100644 --- a/lib/config/esnext.js +++ b/lib/config/esnext.js @@ -36,6 +36,6 @@ module.exports = { 'no-await-in-loop': 'off', 'object-curly-spacing': 'off', 'no-invalid-this': 'off', - } + }, ), }; diff --git a/lib/rules/jquery-dollar-sign-reference.js b/lib/rules/jquery-dollar-sign-reference.js index 39af743f..661131c8 100644 --- a/lib/rules/jquery-dollar-sign-reference.js +++ b/lib/rules/jquery-dollar-sign-reference.js @@ -132,7 +132,7 @@ module.exports = { const checkDescriptor = Object.getOwnPropertyDescriptor( nonChainingMethods, - prop + prop, ); const check = checkDescriptor && checkDescriptor.value; if ( @@ -193,7 +193,7 @@ module.exports = { if (isjQueryRef && hasRegularValue) { context.report( node, - 'Don’t use a $-prefixed identifier for a non-jQuery value.' + 'Don’t use a $-prefixed identifier for a non-jQuery value.', ); } else if (!isjQueryRef && hasDefinitejQueryValue) { context.report(node, 'Use a $-prefixed identifier for a jQuery value.'); @@ -214,7 +214,7 @@ module.exports = { checkForValidjQueryReference( node, node.id, - getFinalAssignmentValue(node.init) + getFinalAssignmentValue(node.init), ); } @@ -226,7 +226,7 @@ module.exports = { checkForValidjQueryReference( node, node.left, - getFinalAssignmentValue(node.right) + getFinalAssignmentValue(node.right), ); } diff --git a/lib/rules/prefer-class-properties.js b/lib/rules/prefer-class-properties.js index be3d8dde..ed101eec 100644 --- a/lib/rules/prefer-class-properties.js +++ b/lib/rules/prefer-class-properties.js @@ -86,7 +86,7 @@ module.exports = { } getTopLevelThisAssignmentExpressions(constructor.value).forEach( - checkConstructorThisAssignment + checkConstructorThisAssignment, ); } else { getClassInstanceProperties(node).forEach(propertyNode => { diff --git a/lib/rules/prefer-early-return.js b/lib/rules/prefer-early-return.js index 7ff9ab83..f5a353ac 100644 --- a/lib/rules/prefer-early-return.js +++ b/lib/rules/prefer-early-return.js @@ -56,7 +56,7 @@ module.exports = { if (hasSimplifiableConditionalBody(body)) { context.report( body, - 'Prefer an early return to a conditionally-wrapped function body' + 'Prefer an early return to a conditionally-wrapped function body', ); } } diff --git a/lib/rules/prefer-twine.js b/lib/rules/prefer-twine.js index b7e69b64..8c7c3fcb 100644 --- a/lib/rules/prefer-twine.js +++ b/lib/rules/prefer-twine.js @@ -16,7 +16,7 @@ module.exports = { if (specifier.local.name !== 'Twine') { context.report( node, - 'You should use "Twine" as the reference name when importing twine.' + 'You should use "Twine" as the reference name when importing twine.', ); } }); diff --git a/tests/lib/rules/binary-assignment-parens.js b/tests/lib/rules/binary-assignment-parens.js index 6295bbc5..28993d2e 100644 --- a/tests/lib/rules/binary-assignment-parens.js +++ b/tests/lib/rules/binary-assignment-parens.js @@ -16,7 +16,7 @@ const validNonBooleanExamples = [].concat( {code: `var foo = ( 'bar' ${operator} 'baz' );`, options: ['never']}, {code: `var foo; foo = 'bar' ${operator} 'baz';`}, {code: `var foo; foo = ('bar' ${operator} 'baz');`, options: ['never']}, - ]) + ]), ); const validBooleanExamples = [].concat( @@ -27,7 +27,7 @@ const validBooleanExamples = [].concat( {code: `var foo; foo = ('bar' ${operator} 'baz')`}, {code: `var foo; foo = ( 'bar' ${operator} 'baz' )`}, {code: `var foo; foo = 'bar' ${operator} 'baz'`, options: ['never']}, - ]) + ]), ); const validLogicalExamples = [ @@ -149,7 +149,7 @@ const invalidBooleanExamples = [].concat( }, ], }, - ]) + ]), ); function errors(count, needsParens) { @@ -261,7 +261,7 @@ ruleTester.run('binary-assignment-parens', rule, { valid: [].concat( validNonBooleanExamples, validBooleanExamples, - validLogicalExamples + validLogicalExamples, ), invalid: [].concat(invalidBooleanExamples, invalidLogicalExamples), });