Skip to content

Commit

Permalink
chore: switch to eslint-config-eslint v11 (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic authored Jun 11, 2024
1 parent 45897b8 commit 655580e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ module.exports = [
...config,
files: ["**/*.js"]
})),
{
...require("eslint-config-eslint/formatting"),
files: ["**/*.js"]
},
{
plugins: {
markdown: require(".")
Expand Down
6 changes: 3 additions & 3 deletions npm-prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 655580e

Please # to comment.