@typescript-eslint/eslint-plugin 8.26.2-alpha.4 → 8.26.2-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rules/no-empty-interface.d.ts.map +1 -1
- package/dist/rules/no-empty-interface.js +12 -1
- package/dist/rules/no-loss-of-precision.d.ts.map +1 -1
- package/dist/rules/no-loss-of-precision.js +12 -1
- package/dist/rules/no-type-alias.d.ts.map +1 -1
- package/dist/rules/no-type-alias.js +12 -1
- package/dist/rules/no-var-requires.d.ts.map +1 -1
- package/dist/rules/no-var-requires.js +12 -1
- package/dist/rules/prefer-ts-expect-error.d.ts.map +1 -1
- package/dist/rules/prefer-ts-expect-error.js +12 -1
- package/dist/rules/sort-type-constituents.d.ts.map +1 -1
- package/dist/rules/sort-type-constituents.js +26 -1
- package/package.json +7 -7
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"no-empty-interface.d.ts","sourceRoot":"","sources":["../../src/rules/no-empty-interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAOzD,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,kBAAkB,CAAC;;AAExD,
|
1
|
+
{"version":3,"file":"no-empty-interface.d.ts","sourceRoot":"","sources":["../../src/rules/no-empty-interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAOzD,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,kBAAkB,CAAC;;AAExD,wBAmHG"}
|
@@ -7,7 +7,18 @@ exports.default = (0, util_1.createRule)({
|
|
7
7
|
name: 'no-empty-interface',
|
8
8
|
meta: {
|
9
9
|
type: 'suggestion',
|
10
|
-
deprecated:
|
10
|
+
deprecated: {
|
11
|
+
deprecatedSince: '8.0.0',
|
12
|
+
replacedBy: [
|
13
|
+
{
|
14
|
+
rule: {
|
15
|
+
name: '@typescript-eslint/no-empty-object-type',
|
16
|
+
url: 'https://typescript-eslint.io/rules/no-empty-object-type',
|
17
|
+
},
|
18
|
+
},
|
19
|
+
],
|
20
|
+
url: 'https://github.com/typescript-eslint/typescript-eslint/pull/8977',
|
21
|
+
},
|
11
22
|
docs: {
|
12
23
|
description: 'Disallow the declaration of empty interfaces',
|
13
24
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"no-loss-of-precision.d.ts","sourceRoot":"","sources":["../../src/rules/no-loss-of-precision.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,QAAA,MAAM,QAAQ,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAElD,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,wBAAwB,CAAC,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC;AAC7E,MAAM,MAAM,UAAU,GAAG,2BAA2B,CAClD,WAAW,CAAC,OAAO,QAAQ,CAAC,CAC7B,CAAC;;AAEF,
|
1
|
+
{"version":3,"file":"no-loss-of-precision.d.ts","sourceRoot":"","sources":["../../src/rules/no-loss-of-precision.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,QAAA,MAAM,QAAQ,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAElD,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,wBAAwB,CAAC,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC;AAC7E,MAAM,MAAM,UAAU,GAAG,2BAA2B,CAClD,WAAW,CAAC,OAAO,QAAQ,CAAC,CAC7B,CAAC;;AAEF,wBA6BG"}
|
@@ -8,7 +8,18 @@ exports.default = (0, util_1.createRule)({
|
|
8
8
|
meta: {
|
9
9
|
type: 'problem',
|
10
10
|
// defaultOptions, -- base rule does not use defaultOptions
|
11
|
-
deprecated:
|
11
|
+
deprecated: {
|
12
|
+
deprecatedSince: '8.0.0',
|
13
|
+
replacedBy: [
|
14
|
+
{
|
15
|
+
rule: {
|
16
|
+
name: 'no-loss-of-precision',
|
17
|
+
url: 'https://eslint.org/docs/latest/rules/no-loss-of-precision',
|
18
|
+
},
|
19
|
+
},
|
20
|
+
],
|
21
|
+
url: 'https://github.com/typescript-eslint/typescript-eslint/pull/8832',
|
22
|
+
},
|
12
23
|
docs: {
|
13
24
|
description: 'Disallow literal numbers that lose precision',
|
14
25
|
extendsBaseRule: true,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"no-type-alias.d.ts","sourceRoot":"","sources":["../../src/rules/no-type-alias.ts"],"names":[],"mappings":"AAMA,KAAK,MAAM,GACP,QAAQ,GACR,kBAAkB,GAClB,WAAW,GACX,6BAA6B,GAC7B,OAAO,CAAC;AAEZ,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,cAAc,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QACpC,qBAAqB,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QAC3C,iBAAiB,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QACvC,aAAa,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QACnC,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,oBAAoB,GAAG,aAAa,CAAC;;AAU9D,
|
1
|
+
{"version":3,"file":"no-type-alias.d.ts","sourceRoot":"","sources":["../../src/rules/no-type-alias.ts"],"names":[],"mappings":"AAMA,KAAK,MAAM,GACP,QAAQ,GACR,kBAAkB,GAClB,WAAW,GACX,6BAA6B,GAC7B,OAAO,CAAC;AAEZ,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,cAAc,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QACpC,qBAAqB,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QAC3C,iBAAiB,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QACvC,aAAa,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QACnC,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,oBAAoB,GAAG,aAAa,CAAC;;AAU9D,wBAmUG"}
|
@@ -6,7 +6,18 @@ exports.default = (0, util_1.createRule)({
|
|
6
6
|
name: 'no-type-alias',
|
7
7
|
meta: {
|
8
8
|
type: 'suggestion',
|
9
|
-
deprecated:
|
9
|
+
deprecated: {
|
10
|
+
deprecatedSince: '6.0.0',
|
11
|
+
replacedBy: [
|
12
|
+
{
|
13
|
+
rule: {
|
14
|
+
name: '@typescript-eslint/consistent-type-definitions',
|
15
|
+
url: 'https://typescript-eslint.io/rules/consistent-type-definitions',
|
16
|
+
},
|
17
|
+
},
|
18
|
+
],
|
19
|
+
url: 'https://github.com/typescript-eslint/typescript-eslint/pull/6229',
|
20
|
+
},
|
10
21
|
docs: {
|
11
22
|
description: 'Disallow type aliases',
|
12
23
|
// too opinionated to be recommended
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"no-var-requires.d.ts","sourceRoot":"","sources":["../../src/rules/no-var-requires.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,KAAK,EAAE,MAAM,EAAE,CAAC;KACjB;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC;;AAErC,
|
1
|
+
{"version":3,"file":"no-var-requires.d.ts","sourceRoot":"","sources":["../../src/rules/no-var-requires.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,KAAK,EAAE,MAAM,EAAE,CAAC;KACjB;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC;;AAErC,wBA8FG"}
|
@@ -6,7 +6,18 @@ exports.default = (0, util_1.createRule)({
|
|
6
6
|
name: 'no-var-requires',
|
7
7
|
meta: {
|
8
8
|
type: 'problem',
|
9
|
-
deprecated:
|
9
|
+
deprecated: {
|
10
|
+
deprecatedSince: '8.0.0',
|
11
|
+
replacedBy: [
|
12
|
+
{
|
13
|
+
rule: {
|
14
|
+
name: '@typescript-eslint/no-require-imports',
|
15
|
+
url: 'https://typescript-eslint.io/rules/no-require-imports',
|
16
|
+
},
|
17
|
+
},
|
18
|
+
],
|
19
|
+
url: 'https://github.com/typescript-eslint/typescript-eslint/pull/8334',
|
20
|
+
},
|
10
21
|
docs: {
|
11
22
|
description: 'Disallow `require` statements except in import statements',
|
12
23
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prefer-ts-expect-error.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-ts-expect-error.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,UAAU,GAAG,0BAA0B,CAAC;;AAEpD,
|
1
|
+
{"version":3,"file":"prefer-ts-expect-error.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-ts-expect-error.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,UAAU,GAAG,0BAA0B,CAAC;;AAEpD,wBAqFG"}
|
@@ -6,7 +6,18 @@ exports.default = (0, util_1.createRule)({
|
|
6
6
|
name: 'prefer-ts-expect-error',
|
7
7
|
meta: {
|
8
8
|
type: 'problem',
|
9
|
-
deprecated:
|
9
|
+
deprecated: {
|
10
|
+
deprecatedSince: '7.11.0',
|
11
|
+
replacedBy: [
|
12
|
+
{
|
13
|
+
rule: {
|
14
|
+
name: '@typescript-eslint/ban-ts-comment',
|
15
|
+
url: 'https://typescript-eslint.io/rules/ban-ts-comment',
|
16
|
+
},
|
17
|
+
},
|
18
|
+
],
|
19
|
+
url: 'https://github.com/typescript-eslint/typescript-eslint/pull/9081',
|
20
|
+
},
|
10
21
|
docs: {
|
11
22
|
description: 'Enforce using `@ts-expect-error` over `@ts-ignore`',
|
12
23
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sort-type-constituents.d.ts","sourceRoot":"","sources":["../../src/rules/sort-type-constituents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AA6GnE,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;KACvB;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,gBAAgB,GAAG,YAAY,CAAC;;AAEvE,
|
1
|
+
{"version":3,"file":"sort-type-constituents.d.ts","sourceRoot":"","sources":["../../src/rules/sort-type-constituents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AA6GnE,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;KACvB;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,gBAAgB,GAAG,YAAY,CAAC;;AAEvE,wBA0MG"}
|
@@ -94,7 +94,32 @@ exports.default = (0, util_1.createRule)({
|
|
94
94
|
name: 'sort-type-constituents',
|
95
95
|
meta: {
|
96
96
|
type: 'suggestion',
|
97
|
-
deprecated:
|
97
|
+
deprecated: {
|
98
|
+
deprecatedSince: '7.13.0',
|
99
|
+
replacedBy: [
|
100
|
+
{
|
101
|
+
plugin: {
|
102
|
+
name: 'eslint-plugin-perfectionist',
|
103
|
+
url: 'https://perfectionist.dev',
|
104
|
+
},
|
105
|
+
rule: {
|
106
|
+
name: 'perfectionist/sort-intersection-types',
|
107
|
+
url: 'https://perfectionist.dev/rules/sort-intersection-types',
|
108
|
+
},
|
109
|
+
},
|
110
|
+
{
|
111
|
+
plugin: {
|
112
|
+
name: 'eslint-plugin-perfectionist',
|
113
|
+
url: 'https://perfectionist.dev',
|
114
|
+
},
|
115
|
+
rule: {
|
116
|
+
name: 'perfectionist/sort-union-types',
|
117
|
+
url: 'https://perfectionist.dev/rules/sort-union-types',
|
118
|
+
},
|
119
|
+
},
|
120
|
+
],
|
121
|
+
url: 'https://github.com/typescript-eslint/typescript-eslint/pull/9253',
|
122
|
+
},
|
98
123
|
docs: {
|
99
124
|
description: 'Enforce constituents of a type union/intersection to be sorted alphabetically',
|
100
125
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@typescript-eslint/eslint-plugin",
|
3
|
-
"version": "8.26.2-alpha.
|
3
|
+
"version": "8.26.2-alpha.6",
|
4
4
|
"description": "TypeScript plugin for ESLint",
|
5
5
|
"files": [
|
6
6
|
"dist",
|
@@ -62,10 +62,10 @@
|
|
62
62
|
},
|
63
63
|
"dependencies": {
|
64
64
|
"@eslint-community/regexpp": "^4.10.0",
|
65
|
-
"@typescript-eslint/scope-manager": "8.26.2-alpha.
|
66
|
-
"@typescript-eslint/type-utils": "8.26.2-alpha.
|
67
|
-
"@typescript-eslint/utils": "8.26.2-alpha.
|
68
|
-
"@typescript-eslint/visitor-keys": "8.26.2-alpha.
|
65
|
+
"@typescript-eslint/scope-manager": "8.26.2-alpha.6",
|
66
|
+
"@typescript-eslint/type-utils": "8.26.2-alpha.6",
|
67
|
+
"@typescript-eslint/utils": "8.26.2-alpha.6",
|
68
|
+
"@typescript-eslint/visitor-keys": "8.26.2-alpha.6",
|
69
69
|
"graphemer": "^1.4.0",
|
70
70
|
"ignore": "^5.3.1",
|
71
71
|
"natural-compare": "^1.4.0",
|
@@ -76,8 +76,8 @@
|
|
76
76
|
"@types/marked": "^5.0.2",
|
77
77
|
"@types/mdast": "^4.0.3",
|
78
78
|
"@types/natural-compare": "*",
|
79
|
-
"@typescript-eslint/rule-schema-to-typescript-types": "8.26.2-alpha.
|
80
|
-
"@typescript-eslint/rule-tester": "8.26.2-alpha.
|
79
|
+
"@typescript-eslint/rule-schema-to-typescript-types": "8.26.2-alpha.6",
|
80
|
+
"@typescript-eslint/rule-tester": "8.26.2-alpha.6",
|
81
81
|
"ajv": "^6.12.6",
|
82
82
|
"cross-env": "^7.0.3",
|
83
83
|
"cross-fetch": "*",
|