Skip to content

Commit f90d2d9

Browse files
committed
add comment
1 parent 5926e67 commit f90d2d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/eslint-plugin-svelte/src/rules/no-unused-props.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ export default createRule('no-unused-props', {
360360
normalized.push(path);
361361
}
362362
return normalized.map((path) => {
363+
// If we allow unused nested properties, only return first level properties
363364
if (allowUnusedNestedProperties) return [path[0]];
364365
return path;
365366
});

0 commit comments

Comments
 (0)