Skip to content

Commit ac7f225

Browse files
committed
More eslint cleanup
1 parent 0a4fd37 commit ac7f225

File tree

5 files changed

+11
-186
lines changed

5 files changed

+11
-186
lines changed

eslint.config.mjs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ export default tseslint.config(
1010
// Ignores formatting rules that will be handled by Prettier
1111
eslintConfigPrettier,
1212
{
13-
files: [
14-
'**/*.ts',
15-
'**/*.js',
16-
'**/*.mjs'
17-
],
13+
name: "globalignores",
1814
ignores: [
19-
'**/node_modules/**'
15+
'**/node_modules/**',
16+
'jest.config.js',
17+
'src/external/**',
18+
'.vscode-test-web/**',
19+
'dist/**',
20+
'out/**'
2021
]
2122
}
2223
);

src/commands/openWorkflowFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function registerOpenWorkflowFile(context: vscode.ExtensionContext) {
2222
const textDocument = await vscode.workspace.openTextDocument(fileUri);
2323
await vscode.window.showTextDocument(textDocument);
2424
return;
25-
} catch (e) {
25+
} catch {
2626
// Ignore error and show error message below
2727
}
2828
}

src/treeViews/settings/repoVariablesNode.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ export class RepoVariablesNode extends vscode.TreeItem {
1616
let variables: VariableNode[] = [];
1717
try {
1818
variables = await this.gitHubRepoContext.client.paginate(
19+
// @ts-expect-error FIXME: Type error after newer rules available. This will be fixed in octokit bump
1920
this.gitHubRepoContext.client.actions.listRepoVariables,
2021
{
2122
owner: this.gitHubRepoContext.owner,
2223
repo: this.gitHubRepoContext.name,
2324
per_page: 100
2425
},
26+
// @ts-expect-error FIXME: Type error after newer rules available. This will be fixed in octokit bump
2527
response => response.data.map(s => new VariableNode(this.gitHubRepoContext, s))
2628
);
2729
} catch (e) {

src/workflow/workflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function getContextStringForWorkflow(workflowUri: vscode.Uri): Prom
4242

4343
return context.join("");
4444
}
45-
} catch (e) {
45+
} catch {
4646
// Ignore
4747
}
4848

webpack.config.js

Lines changed: 0 additions & 178 deletions
This file was deleted.

0 commit comments

Comments
 (0)