Skip to content

Commit 734b982

Browse files
authored
Update all depedencies, including ESLint 8, refresh lockfile (#49550)
1 parent f83ce9b commit 734b982

17 files changed

+1793
-2331
lines changed

Diff for: .eslintrc.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
{ "selector": "variable", "format": ["camelCase", "PascalCase", "UPPER_CASE"], "leadingUnderscore": "allow", "filter": { "regex": "^(_{1,2}filename|_{1,2}dirname|_+|[A-Za-z]+_[A-Za-z]+)$", "match": false } },
2828
{ "selector": "function", "format": ["camelCase", "PascalCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
2929
{ "selector": "parameter", "format": ["camelCase"], "leadingUnderscore": "allow", "filter": { "regex": "^(_+|[A-Za-z]+_[A-Z][a-z]+)$", "match": false } },
30-
{ "selector": "method", "format": ["camelCase", "PascalCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
31-
{ "selector": "memberLike", "format": ["camelCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
30+
{ "selector": "method", "format": ["camelCase", "PascalCase"], "leadingUnderscore": "allow", "filter": { "regex": "^([0-9]+|[A-Za-z]+_[A-Za-z]+)$", "match": false } },
31+
{ "selector": "memberLike", "format": ["camelCase"], "leadingUnderscore": "allow", "filter": { "regex": "^([0-9]+|[A-Za-z]+_[A-Za-z]+)$", "match": false } },
3232
{ "selector": "enumMember", "format": ["camelCase", "PascalCase"], "leadingUnderscore": "allow", "filter": { "regex": "^[A-Za-z]+_[A-Za-z]+$", "match": false } },
3333
{ "selector": "property", "format": null }
3434
],

Diff for: .vscode/settings.template.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"eslint.options": {
88
"rulePaths": ["./scripts/eslint/built/rules/"],
9-
"ext": [".ts"]
9+
"extensions": [".ts"]
1010
},
1111
// To use the last-known-good (LKG) compiler version:
1212
// "typescript.tsdk": "lib"

Diff for: package-lock.json

+1,759-2,285
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+18-19
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"@types/gulp": "^4.0.9",
3939
"@types/gulp-concat": "latest",
4040
"@types/gulp-newer": "latest",
41-
"@types/gulp-rename": "0.0.33",
42-
"@types/gulp-sourcemaps": "0.0.32",
41+
"@types/gulp-rename": "latest",
42+
"@types/gulp-sourcemaps": "latest",
4343
"@types/merge2": "latest",
4444
"@types/microsoft__typescript-etw": "latest",
4545
"@types/minimatch": "latest",
@@ -48,29 +48,28 @@
4848
"@types/mocha": "latest",
4949
"@types/ms": "latest",
5050
"@types/node": "latest",
51-
"@types/node-fetch": "^2.3.4",
5251
"@types/q": "latest",
5352
"@types/source-map-support": "latest",
54-
"@types/xml2js": "^0.4.0",
55-
"@typescript-eslint/eslint-plugin": "^4.28.0",
56-
"@typescript-eslint/experimental-utils": "^4.28.0",
57-
"@typescript-eslint/parser": "^4.28.0",
53+
"@types/xml2js": "^0.4.11",
54+
"@typescript-eslint/eslint-plugin": "^5.28.0",
55+
"@typescript-eslint/parser": "^5.28.0",
56+
"@typescript-eslint/utils": "^5.28.0",
5857
"async": "latest",
59-
"azure-devops-node-api": "^11.0.1",
58+
"azure-devops-node-api": "^11.1.1",
6059
"chai": "latest",
6160
"chalk": "^4.1.2",
6261
"convert-source-map": "latest",
63-
"del": "5.1.0",
64-
"diff": "^4.0.2",
65-
"eslint": "7.12.1",
66-
"eslint-formatter-autolinkable-stylish": "1.1.4",
67-
"eslint-plugin-import": "2.22.1",
68-
"eslint-plugin-jsdoc": "30.7.6",
62+
"del": "6.1.1",
63+
"diff": "^5.1.0",
64+
"eslint": "8.17.0",
65+
"eslint-formatter-autolinkable-stylish": "1.2.0",
66+
"eslint-plugin-import": "2.26.0",
67+
"eslint-plugin-jsdoc": "39.3.2",
6968
"eslint-plugin-no-null": "1.0.2",
7069
"fancy-log": "latest",
71-
"fs-extra": "^9.0.0",
70+
"fs-extra": "^9.1.0",
7271
"glob": "latest",
73-
"gulp": "^4.0.0",
72+
"gulp": "^4.0.2",
7473
"gulp-concat": "latest",
7574
"gulp-insert": "latest",
7675
"gulp-newer": "latest",
@@ -82,14 +81,14 @@
8281
"mocha": "latest",
8382
"mocha-fivemat-progress-reporter": "latest",
8483
"ms": "^2.1.3",
85-
"node-fetch": "^2.6.1",
86-
"prex": "^0.4.3",
84+
"node-fetch": "^3.2.6",
85+
"prex": "^0.4.7",
8786
"q": "latest",
8887
"source-map-support": "latest",
8988
"typescript": "^4.5.5",
9089
"vinyl": "latest",
9190
"vinyl-sourcemaps-apply": "latest",
92-
"xml2js": "^0.4.19"
91+
"xml2js": "^0.4.23"
9392
},
9493
"scripts": {
9594
"prepare": "gulp build-eslint-rules",

Diff for: scripts/eslint/rules/boolean-trivia.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { AST_NODE_TYPES, TSESTree } from "@typescript-eslint/experimental-utils";
1+
import { AST_NODE_TYPES, TSESTree } from "@typescript-eslint/utils";
22
import { createRule } from "./utils";
33

44
export = createRule({
55
name: "boolean-trivia",
66
meta: {
77
docs: {
88
description: ``,
9-
category: "Best Practices",
109
recommended: "error",
1110
},
1211
messages: {

Diff for: scripts/eslint/rules/debug-assert.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { AST_NODE_TYPES, TSESTree } from "@typescript-eslint/experimental-utils";
1+
import { AST_NODE_TYPES, TSESTree } from "@typescript-eslint/utils";
22
import { createRule } from "./utils";
33

44
export = createRule({
55
name: "debug-assert",
66
meta: {
77
docs: {
88
description: ``,
9-
category: "Possible Errors",
109
recommended: "error",
1110
},
1211
messages: {

Diff for: scripts/eslint/rules/no-double-space.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { TSESTree, AST_NODE_TYPES } from "@typescript-eslint/experimental-utils";
1+
import { TSESTree, AST_NODE_TYPES } from "@typescript-eslint/utils";
22
import { createRule } from "./utils";
33

44
export = createRule({
55
name: "no-double-space",
66
meta: {
77
docs: {
88
description: ``,
9-
category: "Stylistic Issues",
109
recommended: "error",
1110
},
1211
messages: {

Diff for: scripts/eslint/rules/no-in-operator.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { TSESTree } from "@typescript-eslint/experimental-utils";
1+
import { TSESTree } from "@typescript-eslint/utils";
22
import { createRule } from "./utils";
33

44
export = createRule({
55
name: "no-in-operator",
66
meta: {
77
docs: {
88
description: ``,
9-
category: "Best Practices",
109
recommended: "error",
1110
},
1211
messages: {

Diff for: scripts/eslint/rules/no-keywords.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { TSESTree, AST_NODE_TYPES } from "@typescript-eslint/experimental-utils";
1+
import { TSESTree, AST_NODE_TYPES } from "@typescript-eslint/utils";
22
import { createRule } from "./utils";
33

44
export = createRule({
55
name: "no-keywords",
66
meta: {
77
docs: {
88
description: `disallows the use of certain TypeScript keywords as variable or parameter names`,
9-
category: "Stylistic Issues",
109
recommended: "error",
1110
},
1211
messages: {

Diff for: scripts/eslint/rules/no-type-assertion-whitespace.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { TSESTree } from "@typescript-eslint/experimental-utils";
1+
import { TSESTree } from "@typescript-eslint/utils";
22
import { createRule } from "./utils";
33

44
export = createRule({
55
name: "no-type-assertion-whitespace",
66
meta: {
77
docs: {
88
description: ``,
9-
category: "Stylistic Issues",
109
recommended: "error",
1110
},
1211
messages: {

Diff for: scripts/eslint/rules/object-literal-surrounding-space.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { TSESTree } from "@typescript-eslint/experimental-utils";
1+
import { TSESTree } from "@typescript-eslint/utils";
22
import { createRule } from "./utils";
33

44
export = createRule({
55
name: "object-literal-surrounding-space",
66
meta: {
77
docs: {
88
description: ``,
9-
category: "Stylistic Issues",
109
recommended: "error",
1110
},
1211
messages: {

Diff for: scripts/eslint/rules/one-namespace-per-file.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { AST_NODE_TYPES, TSESTree } from "@typescript-eslint/experimental-utils";
1+
import { AST_NODE_TYPES, TSESTree } from "@typescript-eslint/utils";
22
import { createRule } from "./utils";
33

44
export = createRule({
55
name: "one-namespace-per-file",
66
meta: {
77
docs: {
88
description: `Limits each file to having at most one top-level namespace declaration`,
9-
category: "Possible Errors",
109
recommended: "error",
1110
},
1211
messages: {

Diff for: scripts/eslint/rules/only-arrow-functions.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AST_NODE_TYPES, TSESTree } from "@typescript-eslint/experimental-utils";
1+
import { AST_NODE_TYPES, TSESTree } from "@typescript-eslint/utils";
22
import { createRule } from "./utils";
33

44
type MessageId = "onlyArrowFunctionsError";
@@ -12,7 +12,6 @@ export = createRule<Options, MessageId>({
1212
meta: {
1313
docs: {
1414
description: `Disallows traditional (non-arrow) function expressions.`,
15-
category: "Best Practices",
1615
recommended: "error",
1716
},
1817
messages: {

Diff for: scripts/eslint/rules/simple-indent.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { TSESTree } from "@typescript-eslint/experimental-utils";
1+
import { TSESTree } from "@typescript-eslint/utils";
22
import { createRule } from "./utils";
33

44
export = createRule({
55
name: "simple-indent",
66
meta: {
77
docs: {
88
description: "Enforce consistent indentation",
9-
category: "Stylistic Issues",
109
recommended: "error",
1110
},
1211
messages: {

Diff for: scripts/eslint/rules/type-operator-spacing.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { TSESTree, AST_TOKEN_TYPES } from "@typescript-eslint/experimental-utils";
1+
import { TSESTree, AST_TOKEN_TYPES } from "@typescript-eslint/utils";
22
import { createRule } from "./utils";
33

44
export = createRule({
55
name: "type-operator-spacing",
66
meta: {
77
docs: {
88
description: ``,
9-
category: "Stylistic Issues",
109
recommended: "error",
1110
},
1211
messages: {

Diff for: scripts/eslint/rules/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import { ESLintUtils } from "@typescript-eslint/experimental-utils";
1+
import { ESLintUtils } from "@typescript-eslint/utils";
22
export const createRule = ESLintUtils.RuleCreator(() => "");

Diff for: scripts/eslint/tests/support/RuleTester.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as path from "path";
2-
import { TSESLint } from "@typescript-eslint/experimental-utils";
2+
import { TSESLint } from "@typescript-eslint/utils";
33

44
export const ROOT_DIR = path.join(process.cwd(), "scripts", "eslint", "tests", "fixtures");
55
export const FILENAME = path.join(ROOT_DIR, "file.ts");

0 commit comments

Comments
 (0)