Skip to content

Commit 008de5b

Browse files
zombieJclaude
andcommitted
chore: upgrade eslint and @umijs/fabric
- Upgrade eslint from ^7.8.1 to ^8.57.1 - Upgrade @umijs/fabric from ^2.0.0 to ^4.0.1 - Fix ESLint config to properly spread base config and rules Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8abf935 commit 008de5b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.eslintrc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
const base = require('@umijs/fabric/dist/eslint');
2+
13
module.exports = {
2-
extends: [require.resolve('@umijs/fabric/dist/eslint')],
4+
...base,
35
rules: {
6+
...base.rules,
47
'react/sort-comp': 0,
58
'react/require-default-props': 0,
69
'jsx-a11y/no-noninteractive-tabindex': 0,
710
},
811
overrides: [
12+
...(base.overrides || []),
913
{
1014
// https://typescript-eslint.io/linting/troubleshooting/#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file
1115
files: ['tests/*.test.tsx'],

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@
6363
"@types/testing-library__jest-dom": "^6.0.0",
6464
"@typescript-eslint/eslint-plugin": "^5.59.7",
6565
"@typescript-eslint/parser": "^5.59.7",
66-
"@umijs/fabric": "^2.0.0",
66+
"@umijs/fabric": "^4.0.1",
6767
"@vitest/coverage-v8": "^0.34.2",
6868
"dumi": "^2.1.0",
69-
"eslint": "^7.8.1",
69+
"eslint": "^8.57.1",
7070
"father": "^4.0.0",
7171
"gh-pages": "^3.1.0",
7272
"husky": "^8.0.3",

0 commit comments

Comments
 (0)