Skip to content

Commit 7a56ca4

Browse files
chore(deps-dev): bump the npm-dependencies group with 2 updates (#637)
* chore(deps-dev): bump the npm-dependencies group with 2 updates Bumps the npm-dependencies group with 2 updates: [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) and [eslint](https://github.com/eslint/eslint). Updates `@eslint/js` from 9.39.4 to 10.0.1 - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](https://github.com/eslint/eslint/commits/v10.0.1/packages/js) Updates `eslint` from 9.39.4 to 10.6.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v9.39.4...v10.6.0) --- updated-dependencies: - dependency-name: "@eslint/js" dependency-version: 10.0.1 dependency-type: direct:development update-type: version-update:semver-major dependency-group: npm-dependencies - dependency-name: eslint dependency-version: 10.6.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: npm-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * fix: support eslint 10 dependency update --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: afc163 <afc163@gmail.com>
1 parent 86876da commit 7a56ca4

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/surge-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
fi
3333
- name: Install dependencies
3434
if: ${{ steps.surge-token.outputs.enabled == 'true' }}
35-
run: npm install --ignore-scripts --no-audit --loglevel=warn
35+
run: npm install --legacy-peer-deps --ignore-scripts --no-audit --loglevel=warn
3636
- name: Build preview
3737
if: ${{ steps.surge-token.outputs.enabled == 'true' }}
3838
run: npm run build

eslint.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import js from '@eslint/js';
2+
import { fixupConfigRules } from '@eslint/compat';
23
import { defineConfig } from 'eslint/config';
34
import { dirname } from 'node:path';
45
import { fileURLToPath } from 'node:url';
@@ -40,8 +41,8 @@ export default defineConfig([
4041
files: ['**/*.{js,jsx,ts,tsx}'],
4142
extends: [
4243
js.configs.recommended,
43-
react.configs.flat.recommended,
44-
react.configs.flat['jsx-runtime'],
44+
...fixupConfigRules(react.configs.flat.recommended),
45+
...fixupConfigRules(react.configs.flat['jsx-runtime']),
4546
prettier,
4647
],
4748
plugins: {

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
"clsx": "^2.1.1"
5454
},
5555
"devDependencies": {
56-
"@eslint/js": "^9.39.4",
56+
"@eslint/js": "^10.0.1",
57+
"@eslint/compat": "^2.1.0",
5758
"@rc-component/father-plugin": "^2.2.0",
5859
"@rc-component/np": "^1.0.4",
5960
"@testing-library/dom": "^10.4.1",
@@ -65,7 +66,7 @@
6566
"@types/react-dom": "^19.2.3",
6667
"cross-env": "^10.1.0",
6768
"dumi": "^2.4.38",
68-
"eslint": "^9.39.4",
69+
"eslint": "^10.6.0",
6970
"eslint-config-prettier": "^10.1.8",
7071
"eslint-plugin-jest": "^29.15.4",
7172
"eslint-plugin-react": "^7.37.5",

0 commit comments

Comments
 (0)