Skip to content

Commit bab0444

Browse files
authored
refactor: switch to eslint-config-eslint v11 (#30)
1 parent 23d0bfe commit bab0444

File tree

7 files changed

+13
-11
lines changed

7 files changed

+13
-11
lines changed

bin/eslint-transforms.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
"use strict";
44

5-
const execSync = require("child_process").execSync;
6-
const path = require("path");
5+
const execSync = require("node:child_process").execSync;
6+
const path = require("node:path");
77

88
const argv = process.argv.slice(2);
99
const args = argv.slice(1);

eslint.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
"use strict";
22

33
const eslintConfigESLintCJS = require("eslint-config-eslint/cjs");
4+
const eslintConfigESLintFormatting = require("eslint-config-eslint/formatting");
45
const globals = require("globals");
56

67
module.exports = [
78
{
89
ignores: ["tests/fixtures/"]
910
},
1011
...eslintConfigESLintCJS,
12+
eslintConfigESLintFormatting,
1113
{
1214
files: ["tests/**/*"],
1315
languageOptions: {

lib/v9-rule-migration/v9-rule-migration.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//------------------------------------------------------------------------------
1111
// Requirements
1212
//------------------------------------------------------------------------------
13-
const path = require("path");
13+
const path = require("node:path");
1414

1515
//------------------------------------------------------------------------------
1616
// Helpers

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
},
2727
"devDependencies": {
2828
"@hypermod/utils": "^0.4.2",
29-
"eslint": "^9.2.0",
30-
"eslint-config-eslint": "^10.0.0",
29+
"eslint": "^9.5.0",
30+
"eslint-config-eslint": "^11.0.0",
3131
"eslint-release": "^1.0.0",
3232
"globals": "^15.2.0",
3333
"mocha": "^10.4.0",

tests/lib/new-rule-format/new-rule-format.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"use strict";
99

1010
const jscodeshift = require("jscodeshift");
11-
const fs = require("fs");
12-
const path = require("path");
13-
const assert = require("assert");
11+
const fs = require("node:fs");
12+
const path = require("node:path");
13+
const assert = require("node:assert");
1414

1515
const newRuleFormatTransform = require("../../../lib/new-rule-format/new-rule-format");
1616
const { normalizeLineEndings } = require("../../utils");

tests/lib/v9-rule-migration/v9-rule-migration.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
"use strict";
88

9-
const path = require("path");
9+
const path = require("node:path");
1010
const { applyTransform } = require("@hypermod/utils");
11-
const assert = require("assert");
11+
const assert = require("node:assert");
1212
const sinon = require("sinon");
1313
const { normalizeLineEndings } = require("../../utils");
1414
const v9MigrationTransform = require("../../../lib/v9-rule-migration/v9-rule-migration");

tests/utils/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
const os = require("os");
3+
const os = require("node:os");
44

55
/**
66
* Returns a new string with all the EOL markers from the string passed in

0 commit comments

Comments
 (0)