Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions client/src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
Expand Down Expand Up @@ -42,7 +41,7 @@ function findNushellExecutable(): string | null {

// Fall back to searching PATH for 'nu'
return which.sync('nu', { nothrow: true });
} catch (error) {
} catch {
return null;
}
}
Expand Down Expand Up @@ -184,6 +183,8 @@ export function activate(context: vscode.ExtensionContext) {
provideTerminalProfile(
token: vscode.CancellationToken,
): vscode.ProviderResult<vscode.TerminalProfile> {
// Consume token to satisfy no-unused-vars without changing behavior
void token;
if (found_nushell_path == null) {
console.log(
'Nushell not found in env:PATH or any of the heuristic locations.',
Expand Down
17 changes: 17 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = [
{
files: ['**/*.ts'], // Apply to all TypeScript files
languageOptions: {
parser: require('@typescript-eslint/parser'), // Use TypeScript parser
sourceType: 'module',
},
plugins: {
'@typescript-eslint': require('@typescript-eslint/eslint-plugin'),
},
rules: {
// Add your preferred rules here, or start with recommended
'@typescript-eslint/no-unused-vars': 'warn',
// Add more rules as needed
},
},
];
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@
"@types/node": "24.3.0",
"@types/tmp": "0.2.6",
"@types/vscode": "^1.93.0",
"@typescript-eslint/eslint-plugin": "8.42.0",
"@typescript-eslint/parser": "8.42.0",
"@typescript-eslint/eslint-plugin": "^8.42.0",
"@typescript-eslint/parser": "^8.42.0",
"@vscode/vsce": "3.6.0",
"esbuild": "0.25.9",
"eslint": "9.34.0",
"eslint": "^9.34.0",
"mocha": "11.7.2",
"prettier": "3.6.2",
"ts-loader": "9.5.4",
Expand Down