Skip to content

Commit 20158b0

Browse files
authored
docs: typo in comment for unused variables handling (#19870)
* Update no-unused-vars.js * Update no-unused-vars.js
1 parent ebfb5b4 commit 20158b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/no-unused-vars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ module.exports = {
11521152

11531153
// fix for { a: { b } }
11541154
if (parentNode.parent.type === "ObjectPattern") {
1155-
// fix for unused variables in dectructured object with single property in variable decalartion and function parameter
1155+
// fix for unused variables in destructured object with single property in variable declaration and function parameter
11561156
if (parentNode.parent.properties.length === 1) {
11571157
return fixVariables(parentNode.parent);
11581158
}

0 commit comments

Comments
 (0)