[TS] Enable noUnusedParameters (#3110)

This commit is contained in:
Chenlei Hu
2025-03-17 16:47:45 -04:00
committed by GitHub
parent 7e66e99c3a
commit 7af003fcab
31 changed files with 79 additions and 93 deletions

View File

@@ -45,7 +45,7 @@ const props = withDefaults(
)
const imageBroken = ref(false)
const handleImageError = (e: Event) => {
const handleImageError = () => {
imageBroken.value = true
}

View File

@@ -103,7 +103,7 @@ const fileSize = computed(() =>
const electronDownloadStore = useElectronDownloadStore()
const [savePath, filename] = props.label.split('/')
electronDownloadStore.$subscribe((mutation, { downloads }) => {
electronDownloadStore.$subscribe((_, { downloads }) => {
const download = downloads.find((download) => props.url === download.url)
if (download) {

View File

@@ -34,7 +34,7 @@ describe('SettingItem', () => {
name: 'Node Input Conversion Submenus',
type: 'combo',
value: 'Top',
options: (value: string) => ['Correctly Translated']
options: () => ['Correctly Translated']
}
})