diff --git a/app/src/components/StdDesign/StdDataEntry/index.tsx b/app/src/components/StdDesign/StdDataEntry/index.tsx index dc92d74a..f9a4ae7e 100644 --- a/app/src/components/StdDesign/StdDataEntry/index.tsx +++ b/app/src/components/StdDesign/StdDataEntry/index.tsx @@ -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)) } @@ -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 diff --git a/app/tsconfig.json b/app/tsconfig.json index ff124ca7..aef3a813 100644 --- a/app/tsconfig.json +++ b/app/tsconfig.json @@ -20,7 +20,7 @@ /* Linting */ "strict": true, "noUnusedLocals": true, - "noUnusedParameters": true, + "noUnusedParameters": false, "noFallthroughCasesInSwitch": true, "esModuleInterop": true,