File tree Expand file tree Collapse file tree 3 files changed +33
-4
lines changed
Expand file tree Collapse file tree 3 files changed +33
-4
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,22 @@ jobs:
2626 matrix :
2727 node-version : ${{ fromJson(needs.matrix.outputs.latest) }}
2828 eslint :
29+ - 10
2930 - 9
3031 babel-eslint :
3132 - 10
3233 - 9
3334 - 8
3435 typescript-eslint :
3536 - 8
37+ exclude :
38+ # ESLint 10 supports Node.js 20+.
39+ - eslint : 10
40+ node-version : 18
41+ - eslint : 10
42+ node-version : 19
43+ - eslint : 10
44+ babel-eslint : 8
3645
3746 steps :
3847 - uses : actions/checkout@v4
4150 with :
4251 node-version : ${{ matrix.node-version }}
4352 after_install : |
44- npm install --no-save "eslint@${{ matrix.eslint }}" "@typescript-eslint/parser@${{ matrix.typescript-eslint }}" "babel-eslint@${{ matrix.babel-eslint }}" "typescript@5"
53+ npm install --no-save "eslint@${{ matrix.eslint }}" "@typescript-eslint/parser@${{ matrix.eslint == 10 && 'canary' || matrix. typescript-eslint }}" "babel-eslint@${{ matrix.babel-eslint }}" "typescript@5"
4554 skip-ls-check : true
4655 - run : npx ls-engines
4756 - run : npm run unit-test
Original file line number Diff line number Diff line change 1616 - ' 7'
1717 - ' 8'
1818 - ' 9'
19+ - ' 10'
1920 ts_version :
2021 # The official ESLint types are not compatible with TS 3.9
2122 # - 3.9
3334 - es2015,dom
3435 - es2020
3536 - esnext
37+ exclude :
38+ # ESLint 10 jobs are only run with TS >= 5.0.
39+ - eslint_version : ' 10'
40+ ts_version : ' 4.0'
41+ - eslint_version : ' 10'
42+ ts_version : 4.1
43+ - eslint_version : ' 10'
44+ ts_version : 4.2
45+ - eslint_version : ' 10'
46+ ts_version : 4.3
47+ - eslint_version : ' 10'
48+ ts_version : 4.4
49+ - eslint_version : ' 10'
50+ ts_version : 4.5
3651 steps :
3752 - uses : actions/checkout@v4
3853 with :
4762
4863 - name : select eslint types
4964 run : |
50- if [ "${{ matrix.eslint_version }}" = "7" ]; then
65+ if [ "${{ matrix.eslint_version }}" = "10" ]; then
66+ # Avoid dev dependency peer conflicts with eslint@10.
67+ npm prune --omit=dev
68+ npm uninstall --no-save @types/eslint
69+ npm install --no-save --legacy-peer-deps eslint@^10 typescript@^5
70+ elif [ "${{ matrix.eslint_version }}" = "7" ]; then
5171 npm install --no-save eslint@^7 @types/eslint@7.2.10
5272 else
5373 npm uninstall --no-save @types/eslint
Original file line number Diff line number Diff line change 6767 "@types/node" : " ^4.9.5" ,
6868 "@typescript-eslint/parser" : " ^2.34.0 || ^3.10.1 || ^4 || ^5 || ^6.20 || ^7.14.1 || 8.4 - 8.17" ,
6969 "babel-eslint" : " ^8 || ^9 || ^10.1.0" ,
70- "eslint" : " ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" ,
70+ "eslint" : " ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7 || ^10 " ,
7171 "eslint-config-airbnb-base" : " ^15.0.0" ,
7272 "eslint-doc-generator" : " ^3.0.2" ,
7373 "eslint-plugin-eslint-plugin" : " ^2.3.0 || ^3.5.3 || ^4.0.1 || ^5.0.5" ,
8989 "typescript-eslint-parser" : " ^20.1.1"
9090 },
9191 "peerDependencies" : {
92- "eslint" : " ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7"
92+ "eslint" : " ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7 || ^10 "
9393 },
9494 "engines" : {
9595 "node" : " >=4"
You can’t perform that action at this time.
0 commit comments