Skip to content

Commit b667096

Browse files
committed
Fix XO lint issues
1 parent 7f7ac93 commit b667096

File tree

7 files changed

+6
-7
lines changed

7 files changed

+6
-7
lines changed

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,5 @@
6565
},
6666
"peerDependencies": {
6767
"eslint": ">=3.6"
68-
},
69-
"xo": {
70-
"esnext": true
7168
}
7269
}

rules/catch-error-name.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
// matches someObj.then([FunctionExpression | ArrowFunctionExpression])
3+
// Matches someObj.then([FunctionExpression | ArrowFunctionExpression])
44
function isLintablePromiseCatch(node) {
55
const callee = node.callee;
66

rules/no-abusive-eslint-disable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const create = context => ({
99
const res = disableRegex.exec(value);
1010

1111
if (res && // It's a eslint-disable comment
12-
!res[2] // but it did not specify any rules
12+
!res[2] // But it did not specify any rules
1313
) {
1414
context.report({
1515
// Can't set it at the given location as the warning

rules/no-array-instanceof.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const create = context => ({
44
BinaryExpression: node => {
55
if (node.operator === 'instanceof' && node.right.type === 'Identifier' && node.right.name === 'Array') {
6-
// get the source code and extract the left part
6+
// Get the source code and extract the left part
77
const arraySourceCode = context.getSourceCode().text.slice(node.left.range[0], node.left.range[1]);
88

99
context.report({

rules/no-hex-escape.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable unicorn/no-hex-escape */
12
'use strict';
23

34
function checkEscape(context, node, value) {

test/escape-case.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable no-template-curly-in-string */
1+
/* eslint-disable no-template-curly-in-string, unicorn/no-hex-escape, unicorn/escape-case */
22
import test from 'ava';
33
import avaRuleTester from 'eslint-ava-rule-tester';
44
import rule from '../rules/escape-case';

test/no-hex-escape.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable unicorn/escape-case, unicorn/no-hex-escape */
12
import test from 'ava';
23
import avaRuleTester from 'eslint-ava-rule-tester';
34
import rule from '../rules/no-hex-escape';

0 commit comments

Comments
 (0)