@typescript-eslint/eslint-plugin 8.32.1-alpha.6 → 8.32.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.
@@ -155,7 +155,9 @@ exports.default = (0, util_1.createRule)({
|
|
155
155
|
...(canFix && {
|
156
156
|
fix: (fixer) => {
|
157
157
|
const keyType = context.sourceCode.getText(constraint);
|
158
|
-
const valueType =
|
158
|
+
const valueType = node.typeAnnotation
|
159
|
+
? context.sourceCode.getText(node.typeAnnotation)
|
160
|
+
: 'any';
|
159
161
|
let recordText = `Record<${keyType}, ${valueType}>`;
|
160
162
|
if (node.optional === '+' || node.optional === true) {
|
161
163
|
recordText = `Partial<${recordText}>`;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@typescript-eslint/eslint-plugin",
|
3
|
-
"version": "8.32.1-alpha.
|
3
|
+
"version": "8.32.1-alpha.7",
|
4
4
|
"description": "TypeScript plugin for ESLint",
|
5
5
|
"files": [
|
6
6
|
"dist",
|
@@ -61,10 +61,10 @@
|
|
61
61
|
},
|
62
62
|
"dependencies": {
|
63
63
|
"@eslint-community/regexpp": "^4.10.0",
|
64
|
-
"@typescript-eslint/scope-manager": "8.32.1-alpha.
|
65
|
-
"@typescript-eslint/type-utils": "8.32.1-alpha.
|
66
|
-
"@typescript-eslint/utils": "8.32.1-alpha.
|
67
|
-
"@typescript-eslint/visitor-keys": "8.32.1-alpha.
|
64
|
+
"@typescript-eslint/scope-manager": "8.32.1-alpha.7",
|
65
|
+
"@typescript-eslint/type-utils": "8.32.1-alpha.7",
|
66
|
+
"@typescript-eslint/utils": "8.32.1-alpha.7",
|
67
|
+
"@typescript-eslint/visitor-keys": "8.32.1-alpha.7",
|
68
68
|
"graphemer": "^1.4.0",
|
69
69
|
"ignore": "^7.0.0",
|
70
70
|
"natural-compare": "^1.4.0",
|
@@ -73,8 +73,8 @@
|
|
73
73
|
"devDependencies": {
|
74
74
|
"@types/mdast": "^4.0.3",
|
75
75
|
"@types/natural-compare": "*",
|
76
|
-
"@typescript-eslint/rule-schema-to-typescript-types": "8.32.1-alpha.
|
77
|
-
"@typescript-eslint/rule-tester": "8.32.1-alpha.
|
76
|
+
"@typescript-eslint/rule-schema-to-typescript-types": "8.32.1-alpha.7",
|
77
|
+
"@typescript-eslint/rule-tester": "8.32.1-alpha.7",
|
78
78
|
"@vitest/coverage-v8": "^3.1.3",
|
79
79
|
"ajv": "^6.12.6",
|
80
80
|
"cross-fetch": "*",
|