Skip to content

Commit 6c49f72

Browse files
committed
chore: testing eslint v10
1 parent ca076d9 commit 6c49f72

5 files changed

Lines changed: 401 additions & 244 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,13 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
node:
21-
- 22
22-
- 20
23-
- 18
24-
eslint:
25-
- 9
26-
- 8
20+
node: [24, 22, 20]
21+
eslint: [10, 9, 8]
2722
include:
28-
- node: 16
29-
eslint: 8
30-
- node: 14
31-
eslint: 8
23+
- { node: 18, eslint: 9 }
24+
- { node: 18, eslint: 8 }
25+
- { node: 16, eslint: 8 }
26+
- { node: 14, eslint: 8 }
3227

3328
steps:
3429
- name: Checkout Repo
@@ -46,9 +41,16 @@ jobs:
4641
- name: Install
4742
run: pnpm install --prefer-frozen-lockfile
4843

49-
- name: Install ESLint ${{ matrix.node }}
50-
if: ${{ matrix.eslint != 9 }}
51-
run: pnpm install -D eslint@${{ matrix.eslint }} @graphql-eslint/eslint-plugin@3 eslint-plugin-svelte@2 svelte@3 vue-eslint-parser@9
44+
- name: Install ESLint ${{ matrix.eslint }}
45+
run: pnpm upgrade eslint@${{ matrix.eslint }}
46+
47+
- name: Install older transitive dependencies for ESLint 9
48+
if: ${{ matrix.eslint == 9 }}
49+
run: pnpm upgrade @eslint/js@9 @eslint/json@0.14 @html-eslint/parser@0.44
50+
51+
- name: Install older transitive dependencies for ESLint 8
52+
if: ${{ matrix.eslint == 8 }}
53+
run: pnpm upgrade @eslint/js@9 @eslint/json@0.14.0 @html-eslint/parser@0.44 @graphql-eslint/eslint-plugin@3 eslint-plugin-svelte@2 svelte@3 vue-eslint-parser@9
5254

5355
- name: Test
5456
run: pnpm mocha

eslint.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import eslintJs from '@eslint/js';
22
import eslintPluginN from 'eslint-plugin-n';
33
import eslintPluginEslintCommentsConfigs from '@eslint-community/eslint-plugin-eslint-comments/configs';
44
import eslintPluginEslintPlugin from 'eslint-plugin-eslint-plugin';
5-
import * as eslintPluginMdx from 'eslint-plugin-mdx';
5+
// import * as eslintPluginMdx from 'eslint-plugin-mdx';
66

77
import eslintPluginPrettierRecommended from './recommended.js';
88

@@ -11,8 +11,8 @@ export default [
1111
eslintPluginN.configs['flat/recommended'],
1212
eslintPluginEslintCommentsConfigs.recommended,
1313
eslintPluginEslintPlugin.configs.recommended,
14-
eslintPluginMdx.flat,
15-
eslintPluginMdx.flatCodeBlocks,
14+
// eslintPluginMdx.flat,
15+
// eslintPluginMdx.flatCodeBlocks,
1616
eslintPluginPrettierRecommended,
1717
{ files: ['**/*.mjs'], languageOptions: { sourceType: 'module' } },
1818
{

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@
7373
"@commitlint/cli": "^20.4.1",
7474
"@commitlint/config-conventional": "^20.4.1",
7575
"@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
76-
"@eslint/js": "^9.23.0",
77-
"@eslint/json": "^0.14.0",
76+
"@eslint/js": "^10.0.1",
77+
"@eslint/json": "^1.0.0",
7878
"@graphql-eslint/eslint-plugin": "^4.4.0",
7979
"@html-eslint/parser": "^0.54.0",
8080
"@prettier/plugin-pug": "^3.4.2",
8181
"clean-pkg-json": "^1.3.0",
82-
"eslint": "^9.23.0",
82+
"eslint": "^10.0.0",
8383
"eslint-config-prettier": "^10.1.8",
8484
"eslint-mdx": "^3.6.2",
8585
"eslint-plugin-eslint-plugin": "^7.3.0",

0 commit comments

Comments
 (0)