Skip to content

Commit b2d4c1c

Browse files
committed
Fix errors from new typescript-eslint version
1 parent 4471121 commit b2d4c1c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.eslintrc.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"eslint-comments/no-use": "off",
1313
"import/no-namespace": "off",
1414
"no-unused-vars": "off",
15-
"@typescript-eslint/no-unused-vars": "error",
15+
"@typescript-eslint/no-unused-vars": ["error", {"caughtErrorsIgnorePattern": "_"}],
1616
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
1717
"@typescript-eslint/no-require-imports": "error",
1818
"@typescript-eslint/array-type": "error",
@@ -21,7 +21,6 @@
2121
"camelcase": "off",
2222
"@typescript-eslint/consistent-type-assertions": "error",
2323
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
24-
"@typescript-eslint/func-call-spacing": ["error", "never"],
2524
"@typescript-eslint/no-array-constructor": "error",
2625
"@typescript-eslint/no-empty-interface": "error",
2726
"@typescript-eslint/no-explicit-any": "error",
@@ -43,8 +42,6 @@
4342
"@typescript-eslint/require-array-sort-compare": "error",
4443
"@typescript-eslint/restrict-plus-operands": "error",
4544
"semi": "off",
46-
"@typescript-eslint/semi": ["error", "never"],
47-
"@typescript-eslint/type-annotation-spacing": "error",
4845
"@typescript-eslint/unbound-method": "error",
4946
"prettier/prettier": "off"
5047
},

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async function getPreviousTag(octokit: InstanceType<typeof GitHub>, notThis: str
5353
}
5454

5555
return ''
56-
} catch (e) {
56+
} catch (_) {
5757
return ''
5858
}
5959
}

0 commit comments

Comments
 (0)