Skip to content

Commit

Permalink
chore: drop noUnusedParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed Jan 13, 2025
1 parent 250ae08 commit 5b67b42
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/esbuild/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const ExtToLoader: Record<string, Loader> = {
'.txt': 'text',
}

export function guessLoader(_code: string, id: string): Loader {
export function guessLoader(code: string, id: string): Loader {
return ExtToLoader[path.extname(id).toLowerCase()] || 'js'
}

Expand Down
2 changes: 1 addition & 1 deletion test/unit-tests/id-consistency/id-consistency.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function createUnpluginWithCallback(

// We extract this check because all bundlers should behave the same
function checkHookCalls(
_name: 'webpack' | 'rollup' | 'vite' | 'rspack' | 'esbuild',
name: 'webpack' | 'rollup' | 'vite' | 'rspack' | 'esbuild',
resolveIdCallback: Mock,
transformIncludeCallback: Mock,
transformCallback: Mock,
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
],
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"declaration": true,
"noEmit": true,
"esModuleInterop": true,
Expand Down

0 comments on commit 5b67b42

Please sign in to comment.