Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
25cb44a
chore: update `@eslint/*` dep, add `legacy-peer-deps`, and use ESLint…
lumirlumir Dec 2, 2025
6ea9062
wip
lumirlumir Dec 3, 2025
17d2d66
wip: remove eslintrc related test cases
lumirlumir Dec 3, 2025
16c8b5e
wip: update CI
lumirlumir Dec 3, 2025
fac38d4
wip: use ESLint v10 in `tests/examples/all.test.js`
lumirlumir Dec 3, 2025
1eb14f3
wip: use latest `typescript-eslint`
lumirlumir Dec 3, 2025
bacd60b
Merge branch 'main' into chore-update-eslint-core-plugin-kit
lumirlumir Feb 8, 2026
ed0bc20
ci: ensure ESLint works with at least `9.15.0` and `10`
lumirlumir Feb 8, 2026
ff0b761
ci: add `-D`
lumirlumir Feb 8, 2026
28fbd4e
wip
lumirlumir Feb 8, 2026
5e3969e
wip: update `@eslint/*` deps
lumirlumir Feb 8, 2026
f842810
wip
lumirlumir Feb 8, 2026
91f0e11
wip
lumirlumir Feb 8, 2026
029a499
wip: fix type error
lumirlumir Feb 8, 2026
a8eff00
wip
lumirlumir Feb 8, 2026
01c1806
wip
lumirlumir Feb 8, 2026
7fd174b
wip: remove duplicate test
lumirlumir Feb 8, 2026
ff808f2
wip: run type test in various ESLint version
lumirlumir Feb 8, 2026
0c47cd6
wip
lumirlumir Feb 8, 2026
a57df7c
wip
lumirlumir Feb 8, 2026
d7a413f
wip: remove fail fast
lumirlumir Feb 8, 2026
f57a608
wip
lumirlumir Feb 8, 2026
cf78b2a
Merge branch 'main' of https://github.com/eslint/markdown into chore-…
lumirlumir Feb 15, 2026
8c69770
wip
lumirlumir Feb 18, 2026
c45b002
Merge branch 'main' of https://github.com/eslint/markdown into chore-…
lumirlumir Mar 2, 2026
34c2553
wip: simplify test structure (applying suggestion in #605)
lumirlumir Mar 2, 2026
f589623
wip
lumirlumir Mar 2, 2026
1e90f22
wip
lumirlumir Mar 2, 2026
e01b24a
wip
lumirlumir Mar 10, 2026
9a703ee
Merge branch 'main' into chore-update-eslint-core-plugin-kit
lumirlumir Mar 10, 2026
5b7795c
wip: fix CI
lumirlumir Mar 10, 2026
f8ba3c1
Merge branch 'main' into chore-update-eslint-core-plugin-kit
lumirlumir Mar 13, 2026
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
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Copy link
Copy Markdown
Member Author

@lumirlumir lumirlumir Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
eslint: [9]
Comment thread
lumirlumir marked this conversation as resolved.
eslint: [9.15.0, 9.x, 10.x]
node: [25.x, 24.x, 22.x, 20.x, "20.19.0"]
include:
- os: windows-latest
eslint: 9
eslint: latest
node: lts/*
- os: macOS-latest
eslint: 9
eslint: latest
node: lts/*
Comment thread
lumirlumir marked this conversation as resolved.
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -69,8 +69,8 @@ jobs:
run: npm install
env:
CI: true
- name: Install ESLint@${{ matrix.eslint }}
run: npm install eslint@${{ matrix.eslint }}
- name: Install ESLint@${{ matrix.eslint }}
run: npm install -D eslint@${{ matrix.eslint }} @eslint/js@${{ matrix.eslint }}
- name: Test
run: npm run test

Expand Down
6 changes: 3 additions & 3 deletions examples/react/package.json
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, both eslint-plugin-react and typescript-eslint do not yet support ESLint v10 as a peer dependency, I've used the latest v9 versions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typescript-esint was just released with v10 peer dependency. Can we update?

Copy link
Copy Markdown
Member Author

@lumirlumir lumirlumir Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I've updated it in e01b24a.

I've also updated other ESLint-related dependencies to their latest versions where possible.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"test": "eslint ."
},
"devDependencies": {
"@eslint/js": "^9.7.0",
"eslint": "^9.7.0",
"eslint-plugin-react": "^7.35.0",
"@eslint/js": "^9.39.4",
"eslint": "^9.39.4",
"eslint-plugin-react": "^7.37.5",
"globals": "^13.24.0"
}
}
8 changes: 4 additions & 4 deletions examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"test": "eslint ."
},
"devDependencies": {
"@eslint/js": "^9.7.0",
"eslint": "^9.15.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.15.0"
"@eslint/js": "^10.0.1",
"eslint": "^10.0.3",
"typescript": "^5.9.3",
"typescript-eslint": "^8.57.0"
}
}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,15 @@
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.2",
"@eslint/js": "^9.39.4",
"@eslint/json": "^0.14.0",
"@eslint/js": "^10.0.1",
"@eslint/json": "^1.1.0",
"@types/mdast": "^4.0.4",
"@types/unist": "^3.0.3",
"c8": "^11.0.0",
"dedent": "^1.7.1",
"eslint": "^9.39.2",
"eslint-config-eslint": "^13.0.0",
"eslint": "^10.0.3",
"eslint-v9": "npm:eslint@9.x",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've followed the same pattern used for the ESLint v9 jiti library installation.

Ref: https://github.com/eslint/eslint/blob/v9.39.3/package.json#L178-L179

This also addresses the comment mentioned in #605 (comment).

"eslint-config-eslint": "^14.0.0",
"eslint-plugin-eslint-plugin": "^7.3.2",
"globals": "^17.1.0",
"knip": "^5.82.1",
Expand Down
6 changes: 3 additions & 3 deletions tests/examples/all.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ for (const example of examples) {
describe("examples", () => {
describe(example, () => {
it("reports errors on code blocks in .md files", async () => {
const { FlatESLint } = require(
require.resolve("eslint/use-at-your-own-risk", {
const { ESLint } = require(
require.resolve("eslint", {
paths: [cwd],
}),
);
const eslint = new FlatESLint({ cwd });
const eslint = new ESLint({ cwd });
const results = await eslint.lintFiles(["README.md"]);
const readme = results.find(
result => path.basename(result.filePath) == "README.md",
Expand Down
10 changes: 4 additions & 6 deletions tests/plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@
//-----------------------------------------------------------------------------

import assert from "node:assert";
import api from "eslint";
import unsupportedAPI from "eslint/use-at-your-own-risk";
import path from "node:path";
import plugin from "../src/index.js";
import fs from "node:fs";
import { fileURLToPath, pathToFileURL } from "node:url";
import { ESLint } from "eslint";
import { LegacyESLint } from "eslint-v9/use-at-your-own-risk";
import plugin from "../src/index.js";

const ESLint = api.ESLint;
const LegacyESLint = unsupportedAPI.LegacyESLint;
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const rulesDir = path.resolve(__dirname, "../src/rules");
Expand Down Expand Up @@ -1582,7 +1580,7 @@ describe("FlatESLint", () => {

describe("should fix code", () => {
before(() => {
eslint = initLegacyESLint("eslintrc.json", { fix: true });
eslint = initFlatESLint("eslint.config.js", { fix: true });
});

it("in the simplest case", async () => {
Expand Down
Loading