Skip to content

Commit d70db82

Browse files
chore(NODE-6269): Update dev dependencies and add dependabot config (#706)
1 parent b766d0f commit d70db82

File tree

10 files changed

+796
-578
lines changed

10 files changed

+796
-578
lines changed

.eslintrc.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,16 @@
5151
"error",
5252
"global"
5353
],
54-
"@typescript-eslint/ban-types": [
55-
"error",
56-
{
57-
"types": {
58-
"Function": false
59-
}
60-
}
61-
],
54+
"@typescript-eslint/no-unsafe-function-type": "off",
6255
"@typescript-eslint/no-unsafe-member-access": "off",
6356
"@typescript-eslint/no-unsafe-assignment": "off",
6457
"@typescript-eslint/no-unsafe-return": "off",
6558
"@typescript-eslint/no-unsafe-argument": "off",
6659
"@typescript-eslint/no-unsafe-call": "off",
6760
"@typescript-eslint/no-unsafe-enum-comparison": "off",
61+
// Note: you must disable the base rule as it can report incorrect errors
62+
"no-unused-expressions": "off",
63+
"@typescript-eslint/no-unused-expressions": "off",
6864
"@typescript-eslint/consistent-type-imports": [
6965
"error",
7066
{
@@ -92,4 +88,4 @@
9288
}
9389
}
9490
]
95-
}
91+
}

.github/dependabot.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "monthly"
12+
ignore:
13+
# chai is esmodule only.
14+
- dependency-name: "chai"
15+
versions: [">=5.0.0"]
16+
# sinon-chai 4.x+ supports chai 5.x+.
17+
- dependency-name: "sinon-chai"
18+
versions: [">=4.0.0"]
19+
# nyc is Node18+ only starting on [email protected].
20+
- dependency-name: "nyc"
21+
versions: [">=16.0.0"]
22+
# we ignore TS as a part of quarterly dependency updates.
23+
- dependency-name: "typescript"
24+
groups:
25+
development-dependencies:
26+
dependency-type: "development"
27+
applies-to: version-updates
28+
update-types:
29+
- "minor"
30+
- "patch"

0 commit comments

Comments
 (0)