Skip to content

Commit 309d37c

Browse files
author
Joachim Seminck
committed
Replace .includes with .indexOf
1 parent dda84f4 commit 309d37c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/no-unused-prop-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ module.exports = {
8989
if (
9090
scope.block && scope.block.parent &&
9191
scope.block.parent.key &&
92-
LIFE_CYCLE_METHODS.includes(scope.block.parent.key.name)
92+
LIFE_CYCLE_METHODS.indexOf(scope.block.parent.key.name) >= 0
9393
) {
9494
return true;
9595
}

0 commit comments

Comments
 (0)