fix: lint error

This commit is contained in:
0xJacky 2023-12-02 11:33:38 +08:00
parent b955e84668
commit ed72b67300
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ import type { StdDesignEdit } from '@/components/StdDesign/types'
const fn = _.get const fn = _.get
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
function readonly(_: StdDesignEdit, dataSource: any, dataIndex: any) { function readonly(edit: StdDesignEdit, dataSource: any, dataIndex: any) {
return h('p', fn(dataSource, dataIndex)) return h('p', fn(dataSource, dataIndex))
} }
@ -80,7 +80,7 @@ function selector(edit: StdDesignEdit, dataSource: any, dataIndex: any) {
/> />
} }
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
function switcher(_: StdDesignEdit, dataSource: any, dataIndex: any) { function switcher(edit: StdDesignEdit, dataSource: any, dataIndex: any) {
return h(Switch, { return h(Switch, {
'checked': dataSource?.[dataIndex], 'checked': dataSource?.[dataIndex],
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any

View file

@ -20,7 +20,7 @@
/* Linting */ /* Linting */
"strict": true, "strict": true,
"noUnusedLocals": true, "noUnusedLocals": true,
"noUnusedParameters": true, "noUnusedParameters": false,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"esModuleInterop": true, "esModuleInterop": true,