React: VariableDeclarator ASTNodes are not handled by markPropTypesAsUsed

You can downgrade "eslint-plugin-react" to 7.13.0 version to wait for fix in 7.14.0. It works for me.


This is an issue with the newest version of eslint-plugin-react (version 7.14.0) . People are already working on a fix and this will probably be solved soon in a newer version. The code is already merged. For more you can check: https://github.com/yannickcr/eslint-plugin-react/issues/2319

For now as a work-around you can downgrade the eslint-plugin-react to 7.13.0 in order to temporary solve your problem till this is fixed.

Last Update: The issue is now fixed by releasing the version 7.14.1 with just this fix. If you are getting this error just update to the latest version and the issue and make sure that you have the version 7.14.1 or later and this will be solved.