Skip to content

Commit

Permalink
chore: update remaining dependencies (#3057)
Browse files Browse the repository at this point in the history
* chore: update remaining dependencies

- move all `@types` deps into the root so they're easier to manage and update
- `yarn outdated` and upgrade out-of-date deps
- manually fix up a few spots in the yarn.lock that had duplications

* fix: prevent checking ForIn when right is a type assertion
  • Loading branch information
bradzacher committed Feb 14, 2021
1 parent 5a78444 commit 3dcedb8
Show file tree
Hide file tree
Showing 6 changed files with 174 additions and 149 deletions.
20 changes: 13 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,25 @@
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@commitlint/config-lerna-scopes": "^11.0.0",
"@types/babel__code-frame": "^7.0.2",
"@types/debug": "^4.1.5",
"@types/eslint-visitor-keys": "^1.0.0",
"@types/glob": "^7.1.3",
"@types/is-glob": "^4.0.1",
"@types/jest": "^26.0.20",
"@types/jest-specific-snapshot": "^0.5.5",
"@types/lodash": "^4.14.149",
"@types/node": "^14.6.2",
"@types/prettier": "^2.1.0",
"@types/marked": "^1.1.0",
"@types/node": "^14.14.27",
"@types/prettier": "^2.2.1",
"@types/rimraf": "^3.0.0",
"all-contributors-cli": "^6.17.2",
"@types/semver": "^7.3.4",
"@types/tmp": "^0.2.0",
"all-contributors-cli": "^6.20.0",
"cspell": "^5.2.4",
"cz-conventional-changelog": "^3.3.0",
"downlevel-dts": "^0.7.0",
"eslint": "^7.7.0",
"eslint": "^7.20.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-eslint-plugin": "^2.3.0",
"eslint-plugin-import": "^2.22.0",
Expand All @@ -103,12 +109,12 @@
"markdownlint-cli": "^0.26.0",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"ts-jest": "^26.3.0",
"ts-jest": "^26.5.1",
"ts-node": "^9.0.0",
"tslint": "^6.1.3",
"typescript": ">=3.3.1 <4.2.0 || 4.1.1-rc"
"typescript": ">=3.3.1 <4.2.0"
},
"resolutions": {
"typescript": "4.1.2"
"typescript": "4.1.5"
}
}
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
"devDependencies": {
"@types/debug": "*",
"@types/marked": "^1.1.0",
"@types/marked": "*",
"@types/prettier": "*",
"chalk": "^4.0.0",
"marked": "^2.0.0",
Expand Down
12 changes: 3 additions & 9 deletions packages/eslint-plugin/src/rules/no-extra-parens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,9 @@ export default util.createRule<Options, MessageIds>({
if (rules.ForInStatement && rules.ForOfStatement) {
overrides.ForInStatement = function (node): void {
if (util.isTypeAssertion(node.right)) {
// makes the rule skip checking of the right
return rules.ForInStatement({
...node,
type: AST_NODE_TYPES.ForInStatement,
right: {
...node.right,
type: AST_NODE_TYPES.SequenceExpression as any,
},
});
// as of 7.20.0 there's no way to skip checking the right of the ForIn
// so just don't validate it at all
return;
}

return rules.ForInStatement(node);
Expand Down
8 changes: 4 additions & 4 deletions packages/typescript-estree/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
"@babel/code-frame": "^7.12.13",
"@babel/parser": "^7.12.16",
"@babel/types": "^7.12.13",
"@types/babel__code-frame": "^7.0.2",
"@types/babel__code-frame": "*",
"@types/debug": "*",
"@types/glob": "*",
"@types/is-glob": "^4.0.1",
"@types/semver": "^7.1.0",
"@types/tmp": "^0.2.0",
"@types/is-glob": "*",
"@types/semver": "*",
"@types/tmp": "*",
"@typescript-eslint/shared-fixtures": "4.15.0",
"glob": "*",
"jest-specific-snapshot": "*",
Expand Down
2 changes: 1 addition & 1 deletion packages/visitor-keys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"eslint-visitor-keys": "^2.0.0"
},
"devDependencies": {
"@types/eslint-visitor-keys": "^1.0.0"
"@types/eslint-visitor-keys": "*"
},
"funding": {
"type": "opencollective",
Expand Down
Loading

0 comments on commit 3dcedb8

Please sign in to comment.