diff --git a/eslint.config.js b/eslint.config.js index f7cd3d51..fb37936b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -5,6 +5,10 @@ module.exports = [ ...config, files: ["**/*.js"] })), + { + ...require("eslint-config-eslint/formatting"), + files: ["**/*.js"] + }, { plugins: { markdown: require(".") diff --git a/npm-prepare.js b/npm-prepare.js index 3aa65168..93849a97 100644 --- a/npm-prepare.js +++ b/npm-prepare.js @@ -7,9 +7,9 @@ "use strict"; if (!process.env.NO_RECURSIVE_PREPARE) { - const childProcess = require("child_process"); - const fs = require("fs"); - const path = require("path"); + const childProcess = require("node:child_process"); + const fs = require("node:fs"); + const path = require("node:path"); const examplesDir = path.resolve(__dirname, "examples"); const examples = fs.readdirSync(examplesDir) diff --git a/package.json b/package.json index 6b928750..cc14faca 100644 --- a/package.json +++ b/package.json @@ -36,10 +36,10 @@ "lib/processor.js" ], "devDependencies": { - "@eslint/js": "^9.1.1", + "@eslint/js": "^9.4.0", "chai": "^4.2.0", - "eslint": "^9.1.1", - "eslint-config-eslint": "^10.0.0", + "eslint": "^9.4.0", + "eslint-config-eslint": "^11.0.0", "eslint-release": "^3.1.2", "globals": "^15.1.0", "mocha": "^6.2.2", diff --git a/tests/lib/plugin.js b/tests/lib/plugin.js index 9e54866e..d7e91ae3 100644 --- a/tests/lib/plugin.js +++ b/tests/lib/plugin.js @@ -11,7 +11,7 @@ const assert = require("chai").assert; const { LegacyESLint, FlatESLint } = require("eslint/use-at-your-own-risk"); -const path = require("path"); +const path = require("node:path"); const plugin = require("../.."); const pkg = require("../../package.json");