Skip to content

Commit e1d60ec

Browse files
Merge pull request #1346 from github/dependabot/npm_and_yarn/eslint-plugin-jest-28.9.0
Bump eslint-plugin-jest from 27.9.0 to 28.9.0
2 parents f5ad24b + 1248663 commit e1d60ec

File tree

5 files changed

+268
-506
lines changed

5 files changed

+268
-506
lines changed

Diff for: .eslintrc.json

+26-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
2-
"plugins": ["github", "jest", "@typescript-eslint"],
3-
"extends": ["plugin:github/recommended", "plugin:github/typescript", "prettier"],
2+
"plugins": [
3+
"github",
4+
"jest",
5+
"@typescript-eslint"
6+
],
7+
"extends": [
8+
"plugin:github/recommended",
9+
"plugin:github/typescript",
10+
"prettier"
11+
],
412
"parser": "@typescript-eslint/parser",
513
"parserOptions": {
614
"ecmaVersion": 9,
@@ -18,14 +26,23 @@
1826
"no-unused-vars": "off",
1927
"camelcase": "off",
2028
"@typescript-eslint/no-unused-vars": "error",
21-
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
29+
"@typescript-eslint/explicit-member-accessibility": [
30+
"error",
31+
{
32+
"accessibility": "no-public"
33+
}
34+
],
2235
"@typescript-eslint/no-require-imports": "error",
2336
"@typescript-eslint/array-type": "error",
2437
"@typescript-eslint/await-thenable": "error",
2538
"@typescript-eslint/ban-ts-comment": "error",
2639
"@typescript-eslint/consistent-type-assertions": "error",
27-
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
28-
"@typescript-eslint/func-call-spacing": ["error", "never"],
40+
"@typescript-eslint/explicit-function-return-type": [
41+
"error",
42+
{
43+
"allowExpressions": true
44+
}
45+
],
2946
"@typescript-eslint/no-array-constructor": "error",
3047
"@typescript-eslint/no-empty-interface": "error",
3148
"@typescript-eslint/no-explicit-any": "off",
@@ -46,7 +63,6 @@
4663
"@typescript-eslint/promise-function-async": "error",
4764
"@typescript-eslint/require-array-sort-compare": "error",
4865
"@typescript-eslint/restrict-plus-operands": "error",
49-
"@typescript-eslint/type-annotation-spacing": "error",
5066
"@typescript-eslint/unbound-method": "error",
5167
"@typescript-eslint/no-shadow": "error",
5268
"no-shadow": "off",
@@ -55,7 +71,9 @@
5571
},
5672
"overrides": [
5773
{
58-
"files": ["*.ts"],
74+
"files": [
75+
"*.ts"
76+
],
5977
"rules": {
6078
"no-undef": "off"
6179
}
@@ -66,4 +84,4 @@
6684
"es6": true,
6785
"jest/globals": true
6886
}
69-
}
87+
}

Diff for: __tests__/helpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const removeDanglingUpdaterContainers = async (): Promise<void> => {
1616
try {
1717
await docker.getContainer(container.Id).remove({v: true, force: true})
1818
} catch (e) {
19-
// ignore
19+
console.log(e) // eslint-disable-line no-console
2020
}
2121
}
2222
}

Diff for: __tests__/updater-integration.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ integration('Updater', () => {
6262
})
6363

6464
afterEach(async () => {
65-
server && server() // teardown server process
65+
server && server() // eslint-disable-line @typescript-eslint/no-unused-expressions
6666
await removeDanglingUpdaterContainers()
6767
fs.rmSync(workingDirectory, {recursive: true})
6868
})

0 commit comments

Comments
 (0)