Skip to content

Commit

Permalink
chore: update dependencies (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Nov 20, 2022
1 parent 79d8967 commit dbb5889
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 39 deletions.
4 changes: 2 additions & 2 deletions lib/node-utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function findClosestCallExpressionNode(
return node;
}

if (!node || !node.parent) {
if (!node?.parent) {
return null;
}

Expand Down Expand Up @@ -204,7 +204,7 @@ export function isPromiseHandled(nodeIdentifier: TSESTree.Identifier): boolean {
);

for (const node of suspiciousNodes) {
if (!node || !node.parent) {
if (!node?.parent) {
continue;
}
if (ASTUtils.isAwaitExpression(node.parent)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/await-async-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
true
);

if (!closestCallExpressionNode || !closestCallExpressionNode.parent) {
if (!closestCallExpressionNode?.parent) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/rules/await-async-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
true
);

if (!closestCallExpression || !closestCallExpression.parent) {
if (!closestCallExpression?.parent) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/rules/await-fire-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
true
);

if (!closestCallExpression || !closestCallExpression.parent) {
if (!closestCallExpression?.parent) {
return;
}

Expand Down
70 changes: 36 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@
"testing-library",
"testing"
],
"author": {
"name": "Mario Beltrán Alarcón",
"email": "[email protected]",
"url": "https://mario.dev/"
"homepage": "https://github.com/testing-library/eslint-plugin-testing-library",
"bugs": {
"url": "https://github.com/testing-library/eslint-plugin-testing-library/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/testing-library/eslint-plugin-testing-library"
},
"homepage": "https://github.com/testing-library/eslint-plugin-testing-library",
"bugs": {
"url": "https://github.com/testing-library/eslint-plugin-testing-library/issues"
"license": "MIT",
"author": {
"name": "Mario Beltrán Alarcón",
"email": "[email protected]",
"url": "https://mario.dev/"
},
"main": "index.js",
"scripts": {
Expand All @@ -33,53 +34,54 @@
"generate:rules-list": "ts-node tools/generate-rules-list",
"lint": "eslint . --max-warnings 0 --ext .js,.ts",
"lint:fix": "npm run lint -- --fix",
"prepare": "is-ci || husky install",
"semantic-release": "semantic-release",
"test": "jest",
"test:ci": "jest --ci --coverage",
"test:update": "npm run test -- --u",
"test:watch": "npm run test -- --watch",
"type-check": "tsc --noEmit",
"semantic-release": "semantic-release",
"prepare": "is-ci || husky install"
"type-check": "tsc --noEmit"
},
"dependencies": {
"@typescript-eslint/utils": "^5.13.0"
"@typescript-eslint/utils": "^5.43.0"
},
"devDependencies": {
"@babel/eslint-plugin": "^7.16.5",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@types/jest": "^27.5.0",
"@types/node": "^16.11.19",
"@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.13.0",
"cpy-cli": "^4.1.0",
"eslint": "^8.6.0",
"eslint-config-kentcdodds": "^20.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^27.0.1",
"@babel/core": "^7.20.2",
"@babel/eslint-parser": "^7.19.1",
"@babel/eslint-plugin": "^7.19.1",
"@commitlint/cli": "^17.2.0",
"@commitlint/config-conventional": "^17.2.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.3",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"cpy-cli": "^4.2.0",
"eslint": "^8.28.0",
"eslint-config-kentcdodds": "^20.4.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.5",
"eslint-plugin-jest-formatting": "^3.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-remote-tester": "^3.0.0",
"eslint-remote-tester-repositories": "^0.0.7",
"husky": "^8.0.1",
"husky": "^8.0.2",
"is-ci": "^3.0.1",
"jest": "^28.1.0",
"jest": "^28.1.3",
"lint-staged": "^13.0.3",
"prettier": "2.7.1",
"semantic-release": "^19.0.2",
"ts-jest": "^28.0.1",
"ts-node": "^10.4.0",
"typescript": "^4.5.4"
"semantic-release": "^19.0.5",
"ts-jest": "^28.0.8",
"ts-node": "^10.9.1",
"typescript": "^4.9.3"
},
"peerDependencies": {
"eslint": "^7.5.0 || ^8.0.0"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0",
"npm": ">=6"
},
"license": "MIT"
}
}

0 comments on commit dbb5889

Please sign in to comment.