Skip to content

Commit d66ad9d

Browse files
committed
fix: 修复部分lint问题
1 parent e0cb182 commit d66ad9d

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

bun.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"eslint-plugin-import-x": "^4.15.0",
6060
"file-type": "^20.4.1",
6161
"globals": "^16.2.0",
62+
"jiti": "^2.4.2",
6263
"mime": "^4.0.7",
6364
"prettier": "^3.5.3",
6465
"react": "19.1.0-canary-ff628334-20250205",

src/api/components/ant/ant-checkbox-props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { SwitchProps } from 'antd'
22

33
export interface AntCheckboxProps extends SwitchProps {
44
value: boolean
5-
onChange: (value: any) => void
5+
onChange: (value: boolean) => void
66
className?: string | undefined
77
label?: string
88
}

src/api/components/ant/ant-number-props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { InputNumberProps } from 'antd'
22

33
export interface AntNumberProps extends InputNumberProps {
44
value: number | null
5-
onChange: (value: any) => void
5+
onChange: (value: string | number | null) => void
66
placeholder?: string
77
className?: string
88
classNameInner?: string

src/api/hook/use-base.type.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { RvPath } from 'rhine-var'
22

3+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
34
export type UseBase = <T = any>(
45
path?: string,
56
) => {
67
state: T
7-
set: (key: string | RvPath, value: any) => void
8+
set: (key: string | RvPath, value: T) => void
89
check: (key: string | RvPath) => void
910
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@
3535
"@/*": ["./src/*"]
3636
}
3737
},
38-
"include": ["src/**/*.ts", "src/**/*.tsx"],
38+
"include": ["src/**/*.ts", "src/**/*.tsx", "eslint.config.ts"],
3939
"exclude": ["node_modules", "dist", "assets"]
4040
}

0 commit comments

Comments
 (0)