Skip to content

Commit 6aaec34

Browse files
feat: eslint 10 support (#677)
* feat: eslint 10 support * fix: update eslint 10 to stable Co-authored-by: Jonas Thelemann <e-mail+github@jonas-thelemann.de> * chore: update `typescript-eslint` * chore: minor bump for `eslint-plugin-eslint-plugin` * chore: format --------- Co-authored-by: Jonas Thelemann <e-mail+github@jonas-thelemann.de>
1 parent 6388a9b commit 6aaec34

File tree

9 files changed

+215
-184
lines changed

9 files changed

+215
-184
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
eslint-version: [8, 9]
8+
eslint-version: [8, 9, 10]
99
name: Test (Node 22, ESLint ${{ matrix.eslint-version }})
1010
steps:
1111
- name: Check out Git repository
@@ -18,15 +18,15 @@ jobs:
1818
- name: Install dependencies
1919
run: npm ci
2020
- name: Install ESLint ${{ matrix.eslint-version }}
21-
run: npm i -D eslint@${{ matrix.eslint-version }}
21+
run: npm i -D eslint@${{ matrix.eslint-version }} --legacy-peer-deps
2222
- name: Run tests
2323
run: |
24-
if [ "${{ matrix.eslint-version }}" = "9" ]; then
25-
npm run build && npm run spec -- --testPathIgnorePatterns="test/e2e-repo.spec.ts|test/flat-config-typing.spec.ts"
26-
else
24+
if [ "${{ matrix.eslint-version }}" = "8" ]; then
2725
npm test
26+
else
27+
npm run build && npm run spec -- --testPathIgnorePatterns="test/e2e-repo.spec.ts|test/flat-config-typing.spec.ts"
2828
fi
2929
- name: Run e2e tests
30-
# Skip e2e tests for ESLint 9 due to API incompatibilities
31-
if: matrix.eslint-version != '9'
30+
# Skip e2e tests for ESLint 9+ due to API incompatibilities
31+
if: matrix.eslint-version == '8'
3232
run: npm run spec:e2e

commitlint.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ module.exports = {
1818
"revert",
1919
],
2020
],
21-
"subject-case": [2, "never", ["sentence-case", "start-case", "pascal-case", "upper-case"]],
21+
"subject-case": [
22+
2,
23+
"never",
24+
["sentence-case", "start-case", "pascal-case", "upper-case"],
25+
],
2226
},
23-
};
27+
};

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default [
1717
includeIgnoreFile(gitignorePath),
1818
eslint.configs.recommended,
1919
...tseslint.configs.recommended,
20-
eslintPlugin.configs["flat/recommended"],
20+
eslintPlugin.configs?.["flat/recommended"],
2121
compat.configs["flat/recommended"],
2222
eslintConfigPrettier,
2323
{

0 commit comments

Comments
 (0)