Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacky committed Dec 2, 2023
1 parent b955e84 commit ed72b67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/src/components/StdDesign/StdDataEntry/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { StdDesignEdit } from '@/components/StdDesign/types'

const fn = _.get
// 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))
}

Expand Down Expand Up @@ -80,7 +80,7 @@ function selector(edit: StdDesignEdit, dataSource: any, dataIndex: 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, {
'checked': dataSource?.[dataIndex],
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down
2 changes: 1 addition & 1 deletion app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": true,

"esModuleInterop": true,
Expand Down

0 comments on commit ed72b67

Please # to comment.