Skip to content

Commit ff8456b

Browse files
committed
chore: testing eslint v10
1 parent 42e6369 commit ff8456b

5 files changed

Lines changed: 605 additions & 414 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 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,12 @@ 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 ${{ matrix.eslint }}
48+
if: ${{ matrix.eslint == 8 }}
49+
run: pnpm upgrade @graphql-eslint/eslint-plugin@3 eslint-plugin-svelte@2 svelte@3 vue-eslint-parser@9
5250

5351
- name: Test
5452
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: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,22 @@
7272
"@changesets/cli": "^2.28.1",
7373
"@commitlint/cli": "^19.8.0",
7474
"@commitlint/config-conventional": "^19.8.0",
75-
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
76-
"@eslint/js": "^9.23.0",
77-
"@eslint/json": "^0.13.0",
78-
"@graphql-eslint/eslint-plugin": "^4.3.0",
79-
"@html-eslint/parser": "^0.44.0",
80-
"@prettier/plugin-pug": "^3.2.1",
75+
"@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
76+
"@eslint/js": "^10.0.1",
77+
"@eslint/json": "^1.0.0",
78+
"@graphql-eslint/eslint-plugin": "^4.4.0",
79+
"@html-eslint/parser": "^0.54.0",
80+
"@prettier/plugin-pug": "^3.4.2",
8181
"clean-pkg-json": "^1.2.1",
82-
"eslint": "^9.23.0",
83-
"eslint-config-prettier": "^10.1.1",
84-
"eslint-mdx": "^3.1.5",
85-
"eslint-plugin-eslint-plugin": "^7.0.0",
86-
"eslint-plugin-mdx": "^3.2.0",
87-
"eslint-plugin-n": "^17.16.2",
82+
"eslint": "^10.0.0",
83+
"eslint-config-prettier": "^10.1.8",
84+
"eslint-mdx": "^3.6.2",
85+
"eslint-plugin-eslint-plugin": "^7.3.0",
86+
"eslint-plugin-mdx": "^3.6.2",
87+
"eslint-plugin-n": "^17.23.2",
8888
"eslint-plugin-prettier": "link:.",
8989
"eslint-plugin-pug": "^1.2.5",
90-
"eslint-plugin-svelte": "^3.3.3",
90+
"eslint-plugin-svelte": "^3.14.0",
9191
"graphql": "^16.10.0",
9292
"lint-staged": "^16.0.0",
9393
"mocha": "^11.1.0",
@@ -96,7 +96,7 @@
9696
"prettier-plugin-svelte": "^3.3.3",
9797
"simple-git-hooks": "^2.12.1",
9898
"svelte": "^5.25.3",
99-
"vue-eslint-parser": "^10.1.1"
99+
"vue-eslint-parser": "^10.2.0"
100100
},
101101
"pnpm": {
102102
"patchedDependencies": {

0 commit comments

Comments
 (0)