Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: switch to eslint-config-eslint v11 #253

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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