diff --git a/apps/oxfmt/tsconfig.json b/apps/oxfmt/tsconfig.json index f2bac3e9e7d3c..a4ffe549c6aa9 100644 --- a/apps/oxfmt/tsconfig.json +++ b/apps/oxfmt/tsconfig.json @@ -5,7 +5,8 @@ "noEmit": true, "target": "ESNext", "strict": true, - "skipLibCheck": true + "skipLibCheck": true, + "noUnusedLocals": true }, "include": ["src-js", "test/**/*.ts"], "exclude": ["test/fixtures"] diff --git a/apps/oxlint/tsconfig.json b/apps/oxlint/tsconfig.json index a0240f715ef6a..c8ba3db460005 100644 --- a/apps/oxlint/tsconfig.json +++ b/apps/oxlint/tsconfig.json @@ -7,7 +7,8 @@ "allowImportingTsExtensions": true, "noImplicitAny": true, "strictNullChecks": true, - "skipLibCheck": true + "skipLibCheck": true, + "noUnusedLocals": true }, "exclude": ["node_modules", "fixtures", "test/fixtures/*/files", "conformance/submodules"] } diff --git a/editors/vscode/client/tools/linter.ts b/editors/vscode/client/tools/linter.ts index 57e78560ec597..13c6f9bd19eb7 100644 --- a/editors/vscode/client/tools/linter.ts +++ b/editors/vscode/client/tools/linter.ts @@ -44,8 +44,6 @@ export default class LinterTool implements ToolInterface { // LSP client instance private client: LanguageClient | undefined; - private linterVersion: string | undefined; - async getBinary( outputChannel: LogOutputChannel, configService: ConfigService, diff --git a/editors/vscode/tsconfig.json b/editors/vscode/tsconfig.json index 9e1322c437af1..804e06faeb710 100644 --- a/editors/vscode/tsconfig.json +++ b/editors/vscode/tsconfig.json @@ -6,7 +6,8 @@ "outDir": "dist", "sourceMap": true, "strict": true, - "skipLibCheck": true + "skipLibCheck": true, + "noUnusedLocals": true }, "include": ["./client", "./tests"], "exclude": ["node_modules", ".vscode-test"] diff --git a/napi/minify/tsconfig.json b/napi/minify/tsconfig.json index c878e86a202a1..24aeb5fd4f51e 100644 --- a/napi/minify/tsconfig.json +++ b/napi/minify/tsconfig.json @@ -3,6 +3,7 @@ "module": "Preserve", "moduleResolution": "Bundler", "noEmit": true, - "target": "ESNext" + "target": "ESNext", + "noUnusedLocals": true } } diff --git a/napi/parser/tsconfig.json b/napi/parser/tsconfig.json index ceb5fb7929a88..7ffbe8cae6f0f 100644 --- a/napi/parser/tsconfig.json +++ b/napi/parser/tsconfig.json @@ -4,6 +4,7 @@ "moduleResolution": "Bundler", "noEmit": true, "target": "ESNext", - "allowImportingTsExtensions": true + "allowImportingTsExtensions": true, + "noUnusedLocals": true } } diff --git a/napi/transform/tsconfig.json b/napi/transform/tsconfig.json index c878e86a202a1..24aeb5fd4f51e 100644 --- a/napi/transform/tsconfig.json +++ b/napi/transform/tsconfig.json @@ -3,6 +3,7 @@ "module": "Preserve", "moduleResolution": "Bundler", "noEmit": true, - "target": "ESNext" + "target": "ESNext", + "noUnusedLocals": true } } diff --git a/plugins/tsconfig.json b/plugins/tsconfig.json index ef4a157fd8365..86addce7f5aad 100644 --- a/plugins/tsconfig.json +++ b/plugins/tsconfig.json @@ -7,6 +7,7 @@ "allowImportingTsExtensions": true, "noImplicitAny": true, "strictNullChecks": true, - "skipLibCheck": true + "skipLibCheck": true, + "noUnusedLocals": true } } diff --git a/tasks/e2e/tsconfig.json b/tasks/e2e/tsconfig.json index 9c71b1480d093..28a60910eee83 100644 --- a/tasks/e2e/tsconfig.json +++ b/tasks/e2e/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { "experimentalDecorators": true, - "module": "esnext" + "module": "esnext", + "noUnusedLocals": true } }