diff --git a/bin/eslint-transforms.js b/bin/eslint-transforms.js index a95b2d6..ef9ffc2 100755 --- a/bin/eslint-transforms.js +++ b/bin/eslint-transforms.js @@ -2,8 +2,8 @@ "use strict"; -const execSync = require("child_process").execSync; -const path = require("path"); +const execSync = require("node:child_process").execSync; +const path = require("node:path"); const argv = process.argv.slice(2); const args = argv.slice(1); diff --git a/eslint.config.js b/eslint.config.js index e7080e6..488e791 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,6 +1,7 @@ "use strict"; const eslintConfigESLintCJS = require("eslint-config-eslint/cjs"); +const eslintConfigESLintFormatting = require("eslint-config-eslint/formatting"); const globals = require("globals"); module.exports = [ @@ -8,6 +9,7 @@ module.exports = [ ignores: ["tests/fixtures/"] }, ...eslintConfigESLintCJS, + eslintConfigESLintFormatting, { files: ["tests/**/*"], languageOptions: { diff --git a/lib/v9-rule-migration/v9-rule-migration.js b/lib/v9-rule-migration/v9-rule-migration.js index 796bd21..653b024 100644 --- a/lib/v9-rule-migration/v9-rule-migration.js +++ b/lib/v9-rule-migration/v9-rule-migration.js @@ -10,7 +10,7 @@ //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ -const path = require("path"); +const path = require("node:path"); //------------------------------------------------------------------------------ // Helpers diff --git a/package.json b/package.json index 99c7550..29e59bb 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,8 @@ }, "devDependencies": { "@hypermod/utils": "^0.4.2", - "eslint": "^9.2.0", - "eslint-config-eslint": "^10.0.0", + "eslint": "^9.5.0", + "eslint-config-eslint": "^11.0.0", "eslint-release": "^1.0.0", "globals": "^15.2.0", "mocha": "^10.4.0", diff --git a/tests/lib/new-rule-format/new-rule-format.js b/tests/lib/new-rule-format/new-rule-format.js index 3703709..80059a5 100644 --- a/tests/lib/new-rule-format/new-rule-format.js +++ b/tests/lib/new-rule-format/new-rule-format.js @@ -8,9 +8,9 @@ "use strict"; const jscodeshift = require("jscodeshift"); -const fs = require("fs"); -const path = require("path"); -const assert = require("assert"); +const fs = require("node:fs"); +const path = require("node:path"); +const assert = require("node:assert"); const newRuleFormatTransform = require("../../../lib/new-rule-format/new-rule-format"); const { normalizeLineEndings } = require("../../utils"); diff --git a/tests/lib/v9-rule-migration/v9-rule-migration.js b/tests/lib/v9-rule-migration/v9-rule-migration.js index 116c82d..7a3dd3b 100644 --- a/tests/lib/v9-rule-migration/v9-rule-migration.js +++ b/tests/lib/v9-rule-migration/v9-rule-migration.js @@ -6,9 +6,9 @@ "use strict"; -const path = require("path"); +const path = require("node:path"); const { applyTransform } = require("@hypermod/utils"); -const assert = require("assert"); +const assert = require("node:assert"); const sinon = require("sinon"); const { normalizeLineEndings } = require("../../utils"); const v9MigrationTransform = require("../../../lib/v9-rule-migration/v9-rule-migration"); diff --git a/tests/utils/index.js b/tests/utils/index.js index 9ee6627..93040d4 100644 --- a/tests/utils/index.js +++ b/tests/utils/index.js @@ -1,6 +1,6 @@ "use strict"; -const os = require("os"); +const os = require("node:os"); /** * Returns a new string with all the EOL markers from the string passed in