@typescript-eslint/eslint-plugin 8.38.1-alpha.5 → 8.38.1-alpha.7
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/configs/eslintrc/strict-type-checked-only.d.ts +1 -0
- package/dist/configs/eslintrc/strict-type-checked-only.d.ts.map +1 -1
- package/dist/configs/eslintrc/strict-type-checked-only.js +1 -0
- package/dist/configs/eslintrc/strict-type-checked.d.ts +1 -0
- package/dist/configs/eslintrc/strict-type-checked.d.ts.map +1 -1
- package/dist/configs/eslintrc/strict-type-checked.js +1 -0
- package/dist/configs/flat/strict-type-checked-only.d.ts.map +1 -1
- package/dist/configs/flat/strict-type-checked-only.js +1 -0
- package/dist/configs/flat/strict-type-checked.d.ts.map +1 -1
- package/dist/configs/flat/strict-type-checked.js +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/raw-plugin.d.ts +2 -0
- package/dist/raw-plugin.d.ts.map +1 -1
- package/dist/rules/naming-convention.d.ts.map +1 -1
- package/dist/rules/naming-convention.js +0 -4
- package/dist/rules/no-unnecessary-type-conversion.d.ts.map +1 -1
- package/dist/rules/no-unnecessary-type-conversion.js +1 -0
- package/package.json +8 -8
@@ -21,6 +21,7 @@ declare const _default: {
|
|
21
21
|
'@typescript-eslint/no-unnecessary-template-expression': "error";
|
22
22
|
'@typescript-eslint/no-unnecessary-type-arguments': "error";
|
23
23
|
'@typescript-eslint/no-unnecessary-type-assertion': "error";
|
24
|
+
'@typescript-eslint/no-unnecessary-type-conversion': "error";
|
24
25
|
'@typescript-eslint/no-unnecessary-type-parameters': "error";
|
25
26
|
'@typescript-eslint/no-unsafe-argument': "error";
|
26
27
|
'@typescript-eslint/no-unsafe-assignment': "error";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"strict-type-checked-only.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/strict-type-checked-only.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"strict-type-checked-only.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/strict-type-checked-only.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,kBAsEiC"}
|
@@ -28,6 +28,7 @@ module.exports = {
|
|
28
28
|
'@typescript-eslint/no-unnecessary-template-expression': 'error',
|
29
29
|
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
30
30
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
31
|
+
'@typescript-eslint/no-unnecessary-type-conversion': 'error',
|
31
32
|
'@typescript-eslint/no-unnecessary-type-parameters': 'error',
|
32
33
|
'@typescript-eslint/no-unsafe-argument': 'error',
|
33
34
|
'@typescript-eslint/no-unsafe-assignment': 'error',
|
@@ -41,6 +41,7 @@ declare const _default: {
|
|
41
41
|
'@typescript-eslint/no-unnecessary-type-arguments': "error";
|
42
42
|
'@typescript-eslint/no-unnecessary-type-assertion': "error";
|
43
43
|
'@typescript-eslint/no-unnecessary-type-constraint': "error";
|
44
|
+
'@typescript-eslint/no-unnecessary-type-conversion': "error";
|
44
45
|
'@typescript-eslint/no-unnecessary-type-parameters': "error";
|
45
46
|
'@typescript-eslint/no-unsafe-argument': "error";
|
46
47
|
'@typescript-eslint/no-unsafe-assignment': "error";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"strict-type-checked.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/strict-type-checked.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"strict-type-checked.d.ts","sourceRoot":"","sources":["../../../src/configs/eslintrc/strict-type-checked.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,kBAyGiC"}
|
@@ -49,6 +49,7 @@ module.exports = {
|
|
49
49
|
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
50
50
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
51
51
|
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
52
|
+
'@typescript-eslint/no-unnecessary-type-conversion': 'error',
|
52
53
|
'@typescript-eslint/no-unnecessary-type-parameters': 'error',
|
53
54
|
'@typescript-eslint/no-unsafe-argument': 'error',
|
54
55
|
'@typescript-eslint/no-unsafe-assignment': 'error',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"strict-type-checked-only.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/strict-type-checked-only.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;yBAED,QAAQ,UAAU,CAAC,MAAM,EACzB,QAAQ,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,
|
1
|
+
{"version":3,"file":"strict-type-checked-only.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/strict-type-checked-only.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;yBAED,QAAQ,UAAU,CAAC,MAAM,EACzB,QAAQ,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBA6EE"}
|
@@ -41,6 +41,7 @@ exports.default = (plugin, parser) => [
|
|
41
41
|
'@typescript-eslint/no-unnecessary-template-expression': 'error',
|
42
42
|
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
43
43
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
44
|
+
'@typescript-eslint/no-unnecessary-type-conversion': 'error',
|
44
45
|
'@typescript-eslint/no-unnecessary-type-parameters': 'error',
|
45
46
|
'@typescript-eslint/no-unsafe-argument': 'error',
|
46
47
|
'@typescript-eslint/no-unsafe-assignment': 'error',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"strict-type-checked.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/strict-type-checked.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;yBAED,QAAQ,UAAU,CAAC,MAAM,EACzB,QAAQ,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,
|
1
|
+
{"version":3,"file":"strict-type-checked.d.ts","sourceRoot":"","sources":["../../../src/configs/flat/strict-type-checked.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAKrE;;;GAGG;yBAED,QAAQ,UAAU,CAAC,MAAM,EACzB,QAAQ,UAAU,CAAC,MAAM,KACxB,UAAU,CAAC,WAAW;AAHzB,wBAgHE"}
|
@@ -62,6 +62,7 @@ exports.default = (plugin, parser) => [
|
|
62
62
|
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
63
63
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
64
64
|
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
65
|
+
'@typescript-eslint/no-unnecessary-type-conversion': 'error',
|
65
66
|
'@typescript-eslint/no-unnecessary-type-parameters': 'error',
|
66
67
|
'@typescript-eslint/no-unsafe-argument': 'error',
|
67
68
|
'@typescript-eslint/no-unsafe-assignment': 'error',
|
package/dist/index.d.ts
CHANGED
@@ -487,6 +487,7 @@ declare const _default: {
|
|
487
487
|
'@typescript-eslint/no-unnecessary-type-arguments': "error";
|
488
488
|
'@typescript-eslint/no-unnecessary-type-assertion': "error";
|
489
489
|
'@typescript-eslint/no-unnecessary-type-constraint': "error";
|
490
|
+
'@typescript-eslint/no-unnecessary-type-conversion': "error";
|
490
491
|
'@typescript-eslint/no-unnecessary-type-parameters': "error";
|
491
492
|
'@typescript-eslint/no-unsafe-argument': "error";
|
492
493
|
'@typescript-eslint/no-unsafe-assignment': "error";
|
@@ -562,6 +563,7 @@ declare const _default: {
|
|
562
563
|
'@typescript-eslint/no-unnecessary-template-expression': "error";
|
563
564
|
'@typescript-eslint/no-unnecessary-type-arguments': "error";
|
564
565
|
'@typescript-eslint/no-unnecessary-type-assertion': "error";
|
566
|
+
'@typescript-eslint/no-unnecessary-type-conversion': "error";
|
565
567
|
'@typescript-eslint/no-unnecessary-type-parameters': "error";
|
566
568
|
'@typescript-eslint/no-unsafe-argument': "error";
|
567
569
|
'@typescript-eslint/no-unsafe-assignment': "error";
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kBAA0B"}
|
package/dist/raw-plugin.d.ts
CHANGED
@@ -510,6 +510,7 @@ declare const _default: {
|
|
510
510
|
'@typescript-eslint/no-unnecessary-type-arguments': "error";
|
511
511
|
'@typescript-eslint/no-unnecessary-type-assertion': "error";
|
512
512
|
'@typescript-eslint/no-unnecessary-type-constraint': "error";
|
513
|
+
'@typescript-eslint/no-unnecessary-type-conversion': "error";
|
513
514
|
'@typescript-eslint/no-unnecessary-type-parameters': "error";
|
514
515
|
'@typescript-eslint/no-unsafe-argument': "error";
|
515
516
|
'@typescript-eslint/no-unsafe-assignment': "error";
|
@@ -585,6 +586,7 @@ declare const _default: {
|
|
585
586
|
'@typescript-eslint/no-unnecessary-template-expression': "error";
|
586
587
|
'@typescript-eslint/no-unnecessary-type-arguments': "error";
|
587
588
|
'@typescript-eslint/no-unnecessary-type-assertion': "error";
|
589
|
+
'@typescript-eslint/no-unnecessary-type-conversion': "error";
|
588
590
|
'@typescript-eslint/no-unnecessary-type-parameters': "error";
|
589
591
|
'@typescript-eslint/no-unsafe-argument': "error";
|
590
592
|
'@typescript-eslint/no-unsafe-assignment': "error";
|
package/dist/raw-plugin.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"raw-plugin.d.ts","sourceRoot":"","sources":["../src/raw-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAU,MAAM,oCAAoC,CAAC;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDvE,kBAIE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"naming-convention.d.ts","sourceRoot":"","sources":["../../src/rules/naming-convention.ts"],"names":[],"mappings":"AAOA,OAAO,EAAkB,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpE,OAAO,KAAK,EAEV,QAAQ,EAET,MAAM,2BAA2B,CAAC;AAUnC,MAAM,MAAM,UAAU,GAClB,oBAAoB,GACpB,2BAA2B,GAC3B,cAAc,GACd,mBAAmB,GACnB,eAAe,GACf,sBAAsB,CAAC;AAK3B,MAAM,MAAM,OAAO,GAAG,QAAQ,EAAE,CAAC;;
|
1
|
+
{"version":3,"file":"naming-convention.d.ts","sourceRoot":"","sources":["../../src/rules/naming-convention.ts"],"names":[],"mappings":"AAOA,OAAO,EAAkB,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpE,OAAO,KAAK,EAEV,QAAQ,EAET,MAAM,2BAA2B,CAAC;AAUnC,MAAM,MAAM,UAAU,GAClB,oBAAoB,GACpB,2BAA2B,GAC3B,cAAc,GACd,mBAAmB,GACnB,eAAe,GACf,sBAAsB,CAAC;AAK3B,MAAM,MAAM,OAAO,GAAG,QAAQ,EAAE,CAAC;;AA8BjC,wBAspBG"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"no-unnecessary-type-conversion.d.ts","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-conversion.ts"],"names":[],"mappings":"AAgBA,KAAK,UAAU,GACX,eAAe,GACf,kBAAkB,GAClB,2BAA2B,CAAC;;AAEhC,
|
1
|
+
{"version":3,"file":"no-unnecessary-type-conversion.d.ts","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-conversion.ts"],"names":[],"mappings":"AAgBA,KAAK,UAAU,GACX,eAAe,GACf,kBAAkB,GAClB,2BAA2B,CAAC;;AAEhC,wBAsVG"}
|
@@ -43,6 +43,7 @@ exports.default = (0, util_1.createRule)({
|
|
43
43
|
type: 'suggestion',
|
44
44
|
docs: {
|
45
45
|
description: 'Disallow conversion idioms when they do not change the type or value of the expression',
|
46
|
+
recommended: 'strict',
|
46
47
|
requiresTypeChecking: true,
|
47
48
|
},
|
48
49
|
hasSuggestions: true,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@typescript-eslint/eslint-plugin",
|
3
|
-
"version": "8.38.1-alpha.
|
3
|
+
"version": "8.38.1-alpha.7",
|
4
4
|
"description": "TypeScript plugin for ESLint",
|
5
5
|
"files": [
|
6
6
|
"dist",
|
@@ -59,10 +59,10 @@
|
|
59
59
|
},
|
60
60
|
"dependencies": {
|
61
61
|
"@eslint-community/regexpp": "^4.10.0",
|
62
|
-
"@typescript-eslint/scope-manager": "8.38.1-alpha.
|
63
|
-
"@typescript-eslint/type-utils": "8.38.1-alpha.
|
64
|
-
"@typescript-eslint/utils": "8.38.1-alpha.
|
65
|
-
"@typescript-eslint/visitor-keys": "8.38.1-alpha.
|
62
|
+
"@typescript-eslint/scope-manager": "8.38.1-alpha.7",
|
63
|
+
"@typescript-eslint/type-utils": "8.38.1-alpha.7",
|
64
|
+
"@typescript-eslint/utils": "8.38.1-alpha.7",
|
65
|
+
"@typescript-eslint/visitor-keys": "8.38.1-alpha.7",
|
66
66
|
"graphemer": "^1.4.0",
|
67
67
|
"ignore": "^7.0.0",
|
68
68
|
"natural-compare": "^1.4.0",
|
@@ -71,8 +71,8 @@
|
|
71
71
|
"devDependencies": {
|
72
72
|
"@types/mdast": "^4.0.3",
|
73
73
|
"@types/natural-compare": "*",
|
74
|
-
"@typescript-eslint/rule-schema-to-typescript-types": "8.38.1-alpha.
|
75
|
-
"@typescript-eslint/rule-tester": "8.38.1-alpha.
|
74
|
+
"@typescript-eslint/rule-schema-to-typescript-types": "8.38.1-alpha.7",
|
75
|
+
"@typescript-eslint/rule-tester": "8.38.1-alpha.7",
|
76
76
|
"@vitest/coverage-v8": "^3.1.3",
|
77
77
|
"ajv": "^6.12.6",
|
78
78
|
"cross-fetch": "*",
|
@@ -92,7 +92,7 @@
|
|
92
92
|
"vitest": "^3.1.3"
|
93
93
|
},
|
94
94
|
"peerDependencies": {
|
95
|
-
"@typescript-eslint/parser": "^8.38.1-alpha.
|
95
|
+
"@typescript-eslint/parser": "^8.38.1-alpha.7",
|
96
96
|
"eslint": "^8.57.0 || ^9.0.0",
|
97
97
|
"typescript": ">=4.8.4 <6.0.0"
|
98
98
|
},
|