Skip to content

Commit 647f9b1

Browse files
committed
add comment
1 parent 713a75e commit 647f9b1

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
@@ -359,6 +359,7 @@ export default createRule('no-unused-props', {
359359
normalized.push(path);
360360
}
361361
return normalized.map((path) => {
362+
// If we allow unused nested properties, only return first level properties
362363
if (allowUnusedNestedProperties) return [path[0]];
363364
return path;
364365
});

0 commit comments

Comments
 (0)