Skip to content

Commit 3bce0e3

Browse files
committed
chore: apply eslint --fix
1 parent 6d9b240 commit 3bce0e3

14 files changed

+16
-16
lines changed

lib/rules/no-deprecated-api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ const modules = {
1313
_linklist: {
1414
[READ]: { since: "5.0.0", replacedBy: null },
1515
},
16-
//eslint-disable-next-line camelcase
16+
1717
_stream_wrap: {
1818
[READ]: { since: "12.0.0", replacedBy: null },
1919
},
20-
//eslint-disable-next-line camelcase
20+
2121
async_hooks: {
2222
currentId: {
2323
[READ]: {

lib/rules/no-unsupported-features/node-builtins.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { READ } = require("eslint-utils")
88
const checkUnsupportedBuiltins = require("../../util/check-unsupported-builtins")
99
const enumeratePropertyNames = require("../../util/enumerate-property-names")
1010

11-
/*eslint-disable camelcase */
11+
1212
const trackMap = {
1313
globals: {
1414
queueMicrotask: {

lib/util/check-publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function checkForPublish(context, filePath, targets) {
2929
const allowed = new Set(getAllowModules(context))
3030
const convertPath = getConvertPath(context)
3131
const basedir = path.dirname(packageInfo.filePath)
32-
// eslint-disable-next-line func-style
32+
3333
const toRelative = fullPath => {
3434
const retv = path.relative(basedir, fullPath).replace(/\\/gu, "/")
3535
return convertPath(retv)

lib/util/get-convert-path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function parse(option) {
109109
for (const pattern of normalizeValue(option.convertPath)) {
110110
const include = toStringArray(pattern.include)
111111
const exclude = toStringArray(pattern.exclude)
112-
const fromRegexp = new RegExp(String(pattern.replace[0])) //eslint-disable-line require-unicode-regexp
112+
const fromRegexp = new RegExp(String(pattern.replace[0]))
113113
const toStr = String(pattern.replace[1])
114114

115115
converters.push({

tests/lib/rules/file-extension-in-import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const DynamicImportSupported = (() => {
1515
})()
1616

1717
if (!DynamicImportSupported) {
18-
//eslint-disable-next-line no-console
18+
1919
console.warn(
2020
"[%s] Skip tests for 'import()'",
2121
path.basename(__filename, ".js")

tests/lib/rules/no-extraneous-import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const DynamicImportSupported = (() => {
1515
})()
1616

1717
if (!DynamicImportSupported) {
18-
//eslint-disable-next-line no-console
18+
1919
console.warn(
2020
"[%s] Skip tests for 'import()'",
2121
path.basename(__filename, ".js")

tests/lib/rules/no-missing-import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const DynamicImportSupported = (() => {
1515
})()
1616

1717
if (!DynamicImportSupported) {
18-
//eslint-disable-next-line no-console
18+
1919
console.warn(
2020
"[%s] Skip tests for 'import()'",
2121
path.basename(__filename, ".js")

tests/lib/rules/no-missing-require.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ ruleTester.run("no-missing-require", rule, {
163163
},
164164
{
165165
filename: fixture("test.js"),
166-
code: "require(`foo${bar}`);", //eslint-disable-line no-template-curly-in-string
166+
code: "require(`foo${bar}`);",
167167
env: { node: true, es6: true },
168168
},
169169

tests/lib/rules/no-path-concat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
"use strict"
66

7-
/*eslint-disable no-template-curly-in-string */
7+
88

99
const path = require("path")
1010
const RuleTester = require("eslint").RuleTester

tests/lib/rules/no-restricted-import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const DynamicImportSupported = (() => {
1515
})()
1616

1717
if (!DynamicImportSupported) {
18-
//eslint-disable-next-line no-console
18+
1919
console.warn(
2020
"[%s] Skip tests for 'import()'",
2121
path.basename(__filename, ".js")

0 commit comments

Comments
 (0)