Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
run fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail-syed committed Dec 1, 2017
1 parent f1895d3 commit ba7073b
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion lib/config/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
),
};
2 changes: 1 addition & 1 deletion lib/config/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ module.exports = {
require('./rules/shopify'),
require('./rules/strict-mode'),
require('./rules/stylistic-issues'),
require('./rules/variables')
require('./rules/variables'),
),
};
2 changes: 1 addition & 1 deletion lib/config/esnext.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ module.exports = {
'no-await-in-loop': 'off',
'object-curly-spacing': 'off',
'no-invalid-this': 'off',
}
},
),
};
8 changes: 4 additions & 4 deletions lib/rules/jquery-dollar-sign-reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ module.exports = {

const checkDescriptor = Object.getOwnPropertyDescriptor(
nonChainingMethods,
prop
prop,
);
const check = checkDescriptor && checkDescriptor.value;
if (
Expand Down Expand Up @@ -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.');
Expand All @@ -214,7 +214,7 @@ module.exports = {
checkForValidjQueryReference(
node,
node.id,
getFinalAssignmentValue(node.init)
getFinalAssignmentValue(node.init),
);
}

Expand All @@ -226,7 +226,7 @@ module.exports = {
checkForValidjQueryReference(
node,
node.left,
getFinalAssignmentValue(node.right)
getFinalAssignmentValue(node.right),
);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-class-properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ module.exports = {
}

getTopLevelThisAssignmentExpressions(constructor.value).forEach(
checkConstructorThisAssignment
checkConstructorThisAssignment,
);
} else {
getClassInstanceProperties(node).forEach(propertyNode => {
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-early-return.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/prefer-twine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
);
}
});
Expand Down
8 changes: 4 additions & 4 deletions tests/lib/rules/binary-assignment-parens.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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 = [
Expand Down Expand Up @@ -149,7 +149,7 @@ const invalidBooleanExamples = [].concat(
},
],
},
])
]),
);

function errors(count, needsParens) {
Expand Down Expand Up @@ -261,7 +261,7 @@ ruleTester.run('binary-assignment-parens', rule, {
valid: [].concat(
validNonBooleanExamples,
validBooleanExamples,
validLogicalExamples
validLogicalExamples,
),
invalid: [].concat(invalidBooleanExamples, invalidLogicalExamples),
});

0 comments on commit ba7073b

Please sign in to comment.