From ed72b67300d2bd4e4f5c5926af052f64357216c2 Mon Sep 17 00:00:00 2001 From: 0xJacky Date: Sat, 2 Dec 2023 11:33:38 +0800 Subject: [PATCH] fix: lint error --- app/src/components/StdDesign/StdDataEntry/index.tsx | 4 ++-- app/tsconfig.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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,