create-typescript-app 2.34.0 → 2.34.2
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.
|
@@ -54,7 +54,13 @@ ${explanation2}
|
|
|
54
54
|
].sort(
|
|
55
55
|
(a, b) => a.replace(/.+from/, "").localeCompare(b.replace(/.+from/, ""))
|
|
56
56
|
);
|
|
57
|
-
const ignoreLines =
|
|
57
|
+
const ignoreLines = Array.from(
|
|
58
|
+
new Set(
|
|
59
|
+
["lib", "node_modules", "pnpm-lock.yaml", ...ignores].map(
|
|
60
|
+
(ignore) => JSON.stringify(ignore)
|
|
61
|
+
)
|
|
62
|
+
)
|
|
63
|
+
).sort();
|
|
58
64
|
const extensionLines = [
|
|
59
65
|
printExtension({
|
|
60
66
|
extends: [
|
|
@@ -91,23 +91,16 @@ function blockESLintIntake(sourceText) {
|
|
|
91
91
|
}
|
|
92
92
|
function getConfigRulesObject(nodes) {
|
|
93
93
|
const configObject = nodes.find(
|
|
94
|
-
(node) => node.type === AST_NODE_TYPES.ObjectExpression
|
|
94
|
+
(node) => node.type === AST_NODE_TYPES.ObjectExpression && areArraysEqual(
|
|
95
|
+
node.properties.map(
|
|
96
|
+
(property) => property.type === AST_NODE_TYPES.Property && property.key.type === AST_NODE_TYPES.Identifier ? property.key.name : void 0
|
|
97
|
+
),
|
|
98
|
+
["extends", "files", "languageOptions", "rules", "settings"]
|
|
99
|
+
)
|
|
95
100
|
);
|
|
96
101
|
if (!configObject) {
|
|
97
102
|
return void 0;
|
|
98
103
|
}
|
|
99
|
-
const configPropertyKeys = configObject.properties.map(
|
|
100
|
-
(property) => property.type === AST_NODE_TYPES.Property && property.key.type === AST_NODE_TYPES.Identifier ? property.key.name : void 0
|
|
101
|
-
);
|
|
102
|
-
if (!areArraysEqual(configPropertyKeys, [
|
|
103
|
-
"extends",
|
|
104
|
-
"files",
|
|
105
|
-
"languageOptions",
|
|
106
|
-
"rules",
|
|
107
|
-
"settings"
|
|
108
|
-
])) {
|
|
109
|
-
return void 0;
|
|
110
|
-
}
|
|
111
104
|
const rulesObject2 = configObject.properties[3];
|
|
112
105
|
return rulesObject2.type === AST_NODE_TYPES.Property && rulesObject2.value.type === AST_NODE_TYPES.ObjectExpression && rulesObject2.value;
|
|
113
106
|
}
|