Skip to content

Commit 4467e3a

Browse files
committed
1 parent a4bf6b9 commit 4467e3a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/rules/no-unused-state.js

-3
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ module.exports = {
111111

112112
let scope = getScope(context, node);
113113
while (scope) {
114-
// @ts-expect-error The parent property does not exist in the ESTree.Node type.
115114
const parent = scope.block && scope.block.parent;
116115
if (
117116
parent
@@ -387,9 +386,7 @@ module.exports = {
387386

388387
stateRefs.forEach((ref) => {
389388
const identifier = ref.identifier;
390-
// @ts-expect-error The parent property does not exist in the Identifier type.
391389
if (identifier && identifier.parent && identifier.parent.type === 'MemberExpression') {
392-
// @ts-expect-error The parent property does not exist in the Identifier type.
393390
addUsedStateField(identifier.parent.property);
394391
}
395392
});

0 commit comments

Comments
 (0)