File tree Expand file tree Collapse file tree 4 files changed +26
-8
lines changed Expand file tree Collapse file tree 4 files changed +26
-8
lines changed Original file line number Diff line number Diff line change 1
- /* eslint-disable @typescript-eslint/no-var-requires */
2
1
/* --------------------------------------------------------------------------------------------
3
2
* Copyright (c) Microsoft Corporation. All rights reserved.
4
3
* Licensed under the MIT License. See License.txt in the project root for license information.
@@ -42,7 +41,7 @@ function findNushellExecutable(): string | null {
42
41
43
42
// Fall back to searching PATH for 'nu'
44
43
return which . sync ( 'nu' , { nothrow : true } ) ;
45
- } catch ( error ) {
44
+ } catch {
46
45
return null ;
47
46
}
48
47
}
@@ -184,6 +183,8 @@ export function activate(context: vscode.ExtensionContext) {
184
183
provideTerminalProfile (
185
184
token : vscode . CancellationToken ,
186
185
) : vscode . ProviderResult < vscode . TerminalProfile > {
186
+ // Consume token to satisfy no-unused-vars without changing behavior
187
+ void token ;
187
188
if ( found_nushell_path == null ) {
188
189
console . log (
189
190
'Nushell not found in env:PATH or any of the heuristic locations.' ,
Original file line number Diff line number Diff line change
1
+ module . exports = [
2
+ {
3
+ files : [ '**/*.ts' ] , // Apply to all TypeScript files
4
+ languageOptions : {
5
+ parser : require ( '@typescript-eslint/parser' ) , // Use TypeScript parser
6
+ sourceType : 'module' ,
7
+ } ,
8
+ plugins : {
9
+ '@typescript-eslint' : require ( '@typescript-eslint/eslint-plugin' ) ,
10
+ } ,
11
+ rules : {
12
+ // Add your preferred rules here, or start with recommended
13
+ '@typescript-eslint/no-unused-vars' : 'warn' ,
14
+ // Add more rules as needed
15
+ } ,
16
+ } ,
17
+ ] ;
Original file line number Diff line number Diff line change 173
173
"@types/node" : " 24.3.0" ,
174
174
"@types/tmp" : " 0.2.6" ,
175
175
"@types/vscode" : " ^1.93.0" ,
176
- "@typescript-eslint/eslint-plugin" : " 8.42.0" ,
177
- "@typescript-eslint/parser" : " 8.42.0" ,
176
+ "@typescript-eslint/eslint-plugin" : " ^ 8.42.0" ,
177
+ "@typescript-eslint/parser" : " ^ 8.42.0" ,
178
178
"@vscode/vsce" : " 3.6.0" ,
179
179
"esbuild" : " 0.25.9" ,
180
- "eslint" : " 9.34.0" ,
180
+ "eslint" : " ^ 9.34.0" ,
181
181
"mocha" : " 11.7.2" ,
182
182
"prettier" : " 3.6.2" ,
183
183
"ts-loader" : " 9.5.4" ,
You can’t perform that action at this time.
0 commit comments