mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
fix: lint error
This commit is contained in:
parent
b955e84668
commit
ed72b67300
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue