Skip to content

Commit

Permalink
chore: Upgrade typescript-eslint to v8 (#893)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Aug 6, 2024
1 parent 07a82d7 commit 20c3ba0
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 256 deletions.
169 changes: 0 additions & 169 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions benchmark/mongoose.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function isValidUrl(value) {
// eslint-disable-next-line no-new
new URL(value);
return true;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (err) {
return false;
}
Expand Down
3 changes: 2 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export default typescriptEslint.config(
'ts-nocheck': false,
},
],
'@typescript-eslint/ban-types': 'warn',
'@typescript-eslint/brace-style': [
'error',
'1tbs',
Expand Down Expand Up @@ -96,6 +95,7 @@ export default typescriptEslint.config(
'@typescript-eslint/no-extra-parens': ['error', 'functions'],
'@typescript-eslint/no-extra-semi': 'error',
'@typescript-eslint/no-extraneous-class': 'error',
'@typescript-eslint/no-restricted-types': 'warn',
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
'@typescript-eslint/no-unsafe-argument': 'warn',
'@typescript-eslint/no-unsafe-assignment': 'warn',
Expand Down Expand Up @@ -203,6 +203,7 @@ export default typescriptEslint.config(
{
files: ['tests/cjs/*.js'],
rules: {
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-var-requires': 'off',
},
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"ts-expect": "1.3.0",
"ts-node": "10.9.2",
"typescript": "5.5.2",
"typescript-eslint": "7.18.0"
"typescript-eslint": "8.0.0"
},
"peerDependencies": {
"mongodb": "^6.0.0"
Expand Down
Loading

0 comments on commit 20c3ba0

Please sign in to comment.