eslint-plugin-unslop 0.7.0 → 0.7.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.
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -37,7 +37,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
37
37
|
// package.json
|
|
38
38
|
var package_default = {
|
|
39
39
|
name: "eslint-plugin-unslop",
|
|
40
|
-
version: "0.7.
|
|
40
|
+
version: "0.7.2",
|
|
41
41
|
description: "ESLint plugin with rules for reducing AI-generated code smells",
|
|
42
42
|
repository: {
|
|
43
43
|
type: "git",
|
|
@@ -1268,6 +1268,7 @@ function walkIds(node, ids, skip) {
|
|
|
1268
1268
|
if (!t) return;
|
|
1269
1269
|
if (t === "Identifier") {
|
|
1270
1270
|
addIdentifier(node, ids, skip);
|
|
1271
|
+
walkIds(prop(node, "typeAnnotation"), ids, skip);
|
|
1271
1272
|
return;
|
|
1272
1273
|
}
|
|
1273
1274
|
if (t === "Literal" || t === "TemplateLiteral") return;
|
|
@@ -1299,6 +1300,7 @@ function walkMemberIds(node, ids, skip) {
|
|
|
1299
1300
|
function walkPropertyIds(node, ids, skip) {
|
|
1300
1301
|
if (prop(node, "computed")) walkIds(prop(node, "key"), ids, skip);
|
|
1301
1302
|
walkIds(prop(node, "value"), ids, skip);
|
|
1303
|
+
walkIds(prop(node, "typeAnnotation"), ids, skip);
|
|
1302
1304
|
}
|
|
1303
1305
|
function isPropertyLike(t) {
|
|
1304
1306
|
return t === "Property" || t === "MethodDefinition" || t === "PropertyDefinition";
|