Skip to content

Commit

Permalink
fix eslint errors (warns are will WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
elazarcoh committed Sep 13, 2021
1 parent e48b308 commit 4eb8ceb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
25 changes: 14 additions & 11 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@
"plugins": [
"@typescript-eslint"
],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": [
"**/*.d.ts"
]
}
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-inferrable-types": "off"
}
}
2 changes: 0 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,3 @@ export async function activate(context: vscode.ExtensionContext) {
await vscode.commands.executeCommand('nvidia-smi-plus.refresh');
}

// this method is called when your extension is deactivated
export function deactivate() { }
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function shallowEqual(object1: any, object2: any) {
return false;
}

for (let key of keys1) {
for (const key of keys1) {
if (object1[key] !== object2[key]) {
return false;
}
Expand Down

0 comments on commit 4eb8ceb

Please sign in to comment.