Skip to content

Commit dbb5889

Browse files
chore: update dependencies (#691)
1 parent 79d8967 commit dbb5889

File tree

5 files changed

+41
-39
lines changed

5 files changed

+41
-39
lines changed

lib/node-utils/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function findClosestCallExpressionNode(
6767
return node;
6868
}
6969

70-
if (!node || !node.parent) {
70+
if (!node?.parent) {
7171
return null;
7272
}
7373

@@ -204,7 +204,7 @@ export function isPromiseHandled(nodeIdentifier: TSESTree.Identifier): boolean {
204204
);
205205

206206
for (const node of suspiciousNodes) {
207-
if (!node || !node.parent) {
207+
if (!node?.parent) {
208208
continue;
209209
}
210210
if (ASTUtils.isAwaitExpression(node.parent)) {

lib/rules/await-async-query.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
6565
true
6666
);
6767

68-
if (!closestCallExpressionNode || !closestCallExpressionNode.parent) {
68+
if (!closestCallExpressionNode?.parent) {
6969
return;
7070
}
7171

lib/rules/await-async-utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
5858
true
5959
);
6060

61-
if (!closestCallExpression || !closestCallExpression.parent) {
61+
if (!closestCallExpression?.parent) {
6262
return;
6363
}
6464

lib/rules/await-fire-event.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
7272
true
7373
);
7474

75-
if (!closestCallExpression || !closestCallExpression.parent) {
75+
if (!closestCallExpression?.parent) {
7676
return;
7777
}
7878

package.json

+36-34
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@
1010
"testing-library",
1111
"testing"
1212
],
13-
"author": {
14-
"name": "Mario Beltrán Alarcón",
15-
"email": "[email protected]",
16-
"url": "https://mario.dev/"
13+
"homepage": "https://github.com/testing-library/eslint-plugin-testing-library",
14+
"bugs": {
15+
"url": "https://github.com/testing-library/eslint-plugin-testing-library/issues"
1716
},
1817
"repository": {
1918
"type": "git",
2019
"url": "https://github.com/testing-library/eslint-plugin-testing-library"
2120
},
22-
"homepage": "https://github.com/testing-library/eslint-plugin-testing-library",
23-
"bugs": {
24-
"url": "https://github.com/testing-library/eslint-plugin-testing-library/issues"
21+
"license": "MIT",
22+
"author": {
23+
"name": "Mario Beltrán Alarcón",
24+
"email": "[email protected]",
25+
"url": "https://mario.dev/"
2526
},
2627
"main": "index.js",
2728
"scripts": {
@@ -33,53 +34,54 @@
3334
"generate:rules-list": "ts-node tools/generate-rules-list",
3435
"lint": "eslint . --max-warnings 0 --ext .js,.ts",
3536
"lint:fix": "npm run lint -- --fix",
37+
"prepare": "is-ci || husky install",
38+
"semantic-release": "semantic-release",
3639
"test": "jest",
3740
"test:ci": "jest --ci --coverage",
3841
"test:update": "npm run test -- --u",
3942
"test:watch": "npm run test -- --watch",
40-
"type-check": "tsc --noEmit",
41-
"semantic-release": "semantic-release",
42-
"prepare": "is-ci || husky install"
43+
"type-check": "tsc --noEmit"
4344
},
4445
"dependencies": {
45-
"@typescript-eslint/utils": "^5.13.0"
46+
"@typescript-eslint/utils": "^5.43.0"
4647
},
4748
"devDependencies": {
48-
"@babel/eslint-plugin": "^7.16.5",
49-
"@commitlint/cli": "^17.0.3",
50-
"@commitlint/config-conventional": "^17.0.3",
51-
"@types/jest": "^27.5.0",
52-
"@types/node": "^16.11.19",
53-
"@typescript-eslint/eslint-plugin": "^5.13.0",
54-
"@typescript-eslint/parser": "^5.13.0",
55-
"cpy-cli": "^4.1.0",
56-
"eslint": "^8.6.0",
57-
"eslint-config-kentcdodds": "^20.0.1",
58-
"eslint-config-prettier": "^8.3.0",
59-
"eslint-plugin-import": "^2.25.4",
60-
"eslint-plugin-jest": "^27.0.1",
49+
"@babel/core": "^7.20.2",
50+
"@babel/eslint-parser": "^7.19.1",
51+
"@babel/eslint-plugin": "^7.19.1",
52+
"@commitlint/cli": "^17.2.0",
53+
"@commitlint/config-conventional": "^17.2.0",
54+
"@types/jest": "^27.5.2",
55+
"@types/node": "^16.18.3",
56+
"@typescript-eslint/eslint-plugin": "^5.43.0",
57+
"@typescript-eslint/parser": "^5.43.0",
58+
"cpy-cli": "^4.2.0",
59+
"eslint": "^8.28.0",
60+
"eslint-config-kentcdodds": "^20.4.0",
61+
"eslint-config-prettier": "^8.5.0",
62+
"eslint-plugin-import": "^2.26.0",
63+
"eslint-plugin-jest": "^27.1.5",
6164
"eslint-plugin-jest-formatting": "^3.1.0",
6265
"eslint-plugin-node": "^11.1.0",
63-
"eslint-plugin-prettier": "^4.0.0",
64-
"eslint-plugin-promise": "^6.0.0",
66+
"eslint-plugin-prettier": "^4.2.1",
67+
"eslint-plugin-promise": "^6.1.1",
6568
"eslint-remote-tester": "^3.0.0",
6669
"eslint-remote-tester-repositories": "^0.0.7",
67-
"husky": "^8.0.1",
70+
"husky": "^8.0.2",
6871
"is-ci": "^3.0.1",
69-
"jest": "^28.1.0",
72+
"jest": "^28.1.3",
7073
"lint-staged": "^13.0.3",
7174
"prettier": "2.7.1",
72-
"semantic-release": "^19.0.2",
73-
"ts-jest": "^28.0.1",
74-
"ts-node": "^10.4.0",
75-
"typescript": "^4.5.4"
75+
"semantic-release": "^19.0.5",
76+
"ts-jest": "^28.0.8",
77+
"ts-node": "^10.9.1",
78+
"typescript": "^4.9.3"
7679
},
7780
"peerDependencies": {
7881
"eslint": "^7.5.0 || ^8.0.0"
7982
},
8083
"engines": {
8184
"node": "^12.22.0 || ^14.17.0 || >=16.0.0",
8285
"npm": ">=6"
83-
},
84-
"license": "MIT"
86+
}
8587
}

0 commit comments

Comments
 (0)