Jelajahi Sumber

fix: lint error

0xJacky 1 tahun lalu
induk
melakukan
ed72b67300
2 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 2 2
      app/src/components/StdDesign/StdDataEntry/index.tsx
  2. 1 1
      app/tsconfig.json

+ 2 - 2
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

+ 1 - 1
app/tsconfig.json

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