Skip to content

Commit

Permalink
upgrade typescript-eslint to 8.0.1 (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjhsf authored Sep 5, 2024
1 parent 07a7a4d commit 93d550b
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 144 deletions.
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default tseslint.config(
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-require-imports': 'off',
},
},
)
1 change: 1 addition & 0 deletions lib/cookie/cookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ function fromJSON(str: unknown): Cookie | undefined {
if (typeof str === 'string') {
try {
obj = JSON.parse(str)
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (e) {
return undefined
}
Expand Down
3 changes: 2 additions & 1 deletion lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ export function createPromiseCallback<T>(cb?: Callback<T>): PromiseCallback<T> {
try {
// If `err` is null, we know `result` must be `T`
// The assertion isn't *strictly* correct, as `T` could be nullish, but, ehh, good enough...
if (err) reject(err)
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
err ? reject(err) : resolve(result!)
else resolve(result!)
} catch (e) {
reject(e instanceof Error ? e : new Error())
}
Expand Down
278 changes: 136 additions & 142 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"ts-jest": "^29.2.2",
"ts-node": "^10.9.2",
"typescript": "5.5.3",
"typescript-eslint": "^7.16.1",
"typescript-eslint": "^8.0.1",
"vows": "^0.8.3"
},
"dependencies": {
Expand Down

0 comments on commit 93d550b

Please sign in to comment.