Skip to content

Commit 349564a

Browse files
committed
chore: align maintenance dependencies
1 parent 3f929a0 commit 349564a

6 files changed

Lines changed: 14 additions & 32 deletions

File tree

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ function normalizeConfig(config) {
5252
if (next.rules) {
5353
next.rules = Object.fromEntries(
5454
Object.entries(next.rules).filter(([ruleName]) => {
55+
if (ruleName.startsWith('@babel/')) {
56+
return false;
57+
}
5558
if (!ruleName.startsWith('@typescript-eslint/')) {
5659
return true;
5760
}

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,30 +65,30 @@
6565
"@types/node": "^26.0.1",
6666
"@types/react": "^19.2.17",
6767
"@types/react-dom": "^19.2.3",
68-
"@typescript-eslint/eslint-plugin": "^8.62.0",
69-
"@typescript-eslint/parser": "^8.62.0",
68+
"@typescript-eslint/eslint-plugin": "^8.62.1",
69+
"@typescript-eslint/parser": "^8.62.1",
7070
"@umijs/fabric": "^4.0.1",
7171
"cross-env": "^10.1.0",
72-
"dumi": "^2.4.35",
72+
"dumi": "^2.4.38",
7373
"eslint": "^9.39.4",
7474
"eslint-config-prettier": "^10.1.8",
75-
"eslint-plugin-jest": "^29.15.3",
75+
"eslint-plugin-jest": "^29.15.4",
7676
"eslint-plugin-react": "^7.37.5",
7777
"eslint-plugin-react-hooks": "^7.1.1",
7878
"eslint-plugin-unicorn": "^65.0.1",
79-
"father": "^4.6.23",
79+
"father": "^4.6.24",
8080
"gh-pages": "^6.3.0",
8181
"husky": "^9.1.7",
8282
"lint-staged": "^17.0.8",
83-
"prettier": "^3.9.0",
83+
"prettier": "^3.9.4",
8484
"rc-test": "^7.1.3",
8585
"react": "^19.2.7",
8686
"react-dom": "^19.2.7",
8787
"typescript": "^6.0.3"
8888
},
8989
"peerDependencies": {
90-
"react": ">=16.9.0",
91-
"react-dom": ">=16.9.0"
90+
"react": "^19.2.7",
91+
"react-dom": "^19.2.7"
9292
},
9393
"cnpm": {
9494
"mode": "npm"

react-compat.d.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/CSSMotion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export function genCSSMotion(config: CSSMotionConfig) {
148148
const supportMotion = isSupportTransition(props, contextMotion);
149149

150150
// Ref to the react node, it may be a HTMLElement
151-
const nodeRef = useRef<any>();
151+
const nodeRef = useRef<any>(null);
152152

153153
function getDomElement() {
154154
return getDOM(nodeRef.current) as HTMLElement;

src/hooks/useDomMotionEvents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { animationEndName, transitionEndName } from '../util/motion';
77
export default (
88
onInternalMotionEnd: (event: MotionEvent) => void,
99
): [(element: HTMLElement) => void, (element: HTMLElement) => void] => {
10-
const cacheElementRef = useRef<HTMLElement>();
10+
const cacheElementRef = useRef<HTMLElement | undefined>(undefined);
1111

1212
// Remove events
1313
function removeMotionEvents(element: HTMLElement) {

tsconfig.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@
2121
"strictBindCallApply": false,
2222
"module": "ESNext"
2323
},
24-
"include": [
25-
"react-compat.d.ts",
26-
"global.d.ts",
27-
"src",
28-
"docs",
29-
".dumirc.ts",
30-
".fatherrc.ts"
31-
],
24+
"include": ["global.d.ts", "src", "docs", ".dumirc.ts", ".fatherrc.ts"],
3225
"exclude": ["node_modules", "lib", "es", "dist", "docs-dist"]
3326
}

0 commit comments

Comments
 (0)