diff --git a/.github/workflows/surge-preview.yml b/.github/workflows/surge-preview.yml index 1a44351..3844788 100644 --- a/.github/workflows/surge-preview.yml +++ b/.github/workflows/surge-preview.yml @@ -32,7 +32,7 @@ jobs: fi - name: Install dependencies if: ${{ steps.surge-token.outputs.enabled == 'true' }} - run: npm install --ignore-scripts --no-audit --loglevel=warn + run: npm install --legacy-peer-deps --ignore-scripts --no-audit --loglevel=warn - name: Build preview if: ${{ steps.surge-token.outputs.enabled == 'true' }} run: npm run build diff --git a/eslint.config.mjs b/eslint.config.mjs index 40f08ec..a298e8e 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,4 +1,5 @@ import js from '@eslint/js'; +import { fixupConfigRules } from '@eslint/compat'; import { defineConfig } from 'eslint/config'; import { dirname } from 'node:path'; import { fileURLToPath } from 'node:url'; @@ -40,8 +41,8 @@ export default defineConfig([ files: ['**/*.{js,jsx,ts,tsx}'], extends: [ js.configs.recommended, - react.configs.flat.recommended, - react.configs.flat['jsx-runtime'], + ...fixupConfigRules(react.configs.flat.recommended), + ...fixupConfigRules(react.configs.flat['jsx-runtime']), prettier, ], plugins: { diff --git a/package.json b/package.json index 98f74ad..14c893c 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,8 @@ "react-dom": ">=18.0.0" }, "devDependencies": { - "@eslint/js": "^9.39.4", + "@eslint/js": "^10.0.1", + "@eslint/compat": "^2.1.0", "@rc-component/father-plugin": "^2.2.0", "@rc-component/np": "^1.0.4", "@testing-library/dom": "^10.4.1", @@ -61,7 +62,7 @@ "@types/warning": "^3.0.4", "cross-env": "^10.1.0", "dumi": "^2.4.38", - "eslint": "^9.39.4", + "eslint": "^10.6.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-jest": "^29.15.4", "eslint-plugin-react": "^7.37.5", @@ -73,7 +74,7 @@ "husky": "^9.1.7", "lint-staged": "^17.0.8", "prettier": "^3.9.4", - "rc-animate": "^2.9.1", + "rc-animate": "^3.1.1", "rc-test": "^7.1.3", "react": "^19.2.7", "react-dom": "^19.2.7", @@ -81,7 +82,7 @@ "typescript-eslint": "^8.62.1" }, "dependencies": { - "@babel/runtime": "^7.29.7", + "@babel/runtime": "^8.0.0", "@rc-component/resize-observer": "^1.0.1", "@rc-component/util": "^1.4.0", "clsx": "^2.1.1"