Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(eslint-plugin-react): Pin down eslint-plugin-react to avoid 7.14.0 #2334

Closed

Conversation

sharvit
Copy link
Contributor

@sharvit sharvit commented Jun 24, 2019

What:

Pin down eslint-plugin-react to avoid version 7.14.0

eslint-plugin-react just released version 7.14.0 with the following issue:
jsx-eslint/eslint-plugin-react#2319

When using the latest version of patternfly-react-eslint I am receiving this error:

VariableDeclarator ASTNodes are not handled by markPropTypesAsUsed
Error: VariableDeclarator ASTNodes are not handled by markPropTypesAsUsed
    at markPropTypesAsUsed (/home/vagrant/foreman/node_modules/eslint-plugin-react/lib/util/usedPropTypes.js:338:15)
    at Object.VariableDeclarator (/home/vagrant/foreman/node_modules/eslint-plugin-react/lib/util/usedPropTypes.js:492:9)
    at updatedRuleInstructions.(anonymous function) (/home/vagrant/foreman/node_modules/eslint-plugin-react/lib/util/Components.js:780:47)
    at listeners.(anonymous function).forEach.listener (/home/vagrant/foreman/node_modules/eslint/lib/util/safe-emitter.js:47:58)
    at Array.forEach (<anonymous>)
    at Object.emit (/home/vagrant/foreman/node_modules/eslint/lib/util/safe-emitter.js:47:38)
    at NodeEventGenerator.applySelector (/home/vagrant/foreman/node_modules/eslint/lib/util/node-event-generator.js:251:26)
    at NodeEventGenerator.applySelectors (/home/vagrant/foreman/node_modules/eslint/lib/util/node-event-generator.js:280:22)
    at NodeEventGenerator.enterNode (/home/vagrant/foreman/node_modules/eslint/lib/util/node-event-generator.js:294:14)
    at CodePathAnalyzer.enterNode (/home/vagrant/foreman/node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:608:23)

@patternfly-build
Copy link
Contributor

PatternFly-React preview: https://patternfly-react-pr-2334.surge.sh

@sharvit
Copy link
Contributor Author

sharvit commented Jun 24, 2019

This is fixed in eslint-plugin-react version 7.14.1:
https://github.com/yannickcr/eslint-plugin-react/releases/tag/v7.14.1

Closing.

@sharvit sharvit closed this Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants