Skip to content

Commit 7a828d2

Browse files
committed
fix XO lint issues
1 parent d6eaa28 commit 7a828d2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

rules/no-abusive-eslint-disable.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ module.exports = function (context) {
88
node.comments.forEach(function (comment) {
99
var value = comment.value.trim();
1010
var res = disableRegex.exec(value);
11+
1112
if (res && // It is a eslint-disable comment
1213
!res[2] // but it did not specify any rules
1314
) {
1415
context.report({
1516
// Can't set it at the given location as the warning
1617
// will be ignored due to the disable comment
17-
loc: {line: 0, column: 0},
18+
loc: {
19+
line: 0,
20+
column: 0
21+
},
1822
// So specify it in the message
1923
message: 'Specify the rules you want to disable at line {{line}}:{{column}}',
2024
data: comment.loc.start

test/no-abusive-eslint-disable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const ruleTester = avaRuleTester(test, {
88
}
99
});
1010

11-
const error = (message) => ({
11+
const error = message => ({
1212
ruleId: 'no-abusive-eslint-disable',
1313
message
1414
});

0 commit comments

Comments
 (0)