We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4bf6b9 commit 4467e3aCopy full SHA for 4467e3a
lib/rules/no-unused-state.js
@@ -111,7 +111,6 @@ module.exports = {
111
112
let scope = getScope(context, node);
113
while (scope) {
114
- // @ts-expect-error The parent property does not exist in the ESTree.Node type.
115
const parent = scope.block && scope.block.parent;
116
if (
117
parent
@@ -387,9 +386,7 @@ module.exports = {
387
386
388
stateRefs.forEach((ref) => {
389
const identifier = ref.identifier;
390
- // @ts-expect-error The parent property does not exist in the Identifier type.
391
if (identifier && identifier.parent && identifier.parent.type === 'MemberExpression') {
392
393
addUsedStateField(identifier.parent.property);
394
}
395
});
0 commit comments