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
Definition for rule 'react/static-property-placement' was not found #2249
Comments
It's not been released yet. Check the docs on the latest tag, not on master. |
Can you notice about that in readme.md and rules/static-property-placement.md ? |
@nzvtrk since that’s how every GitHub project works (master can always be potentially unreleased), and since doing so would be a burden since we’d have to remove that notice for every tagged release, no. |
@lostm1nd that code has defaultProps as a static public field - what error would you expect? |
@ljharb my bad. I was misled by the name to think it will enforce placement inside class bodies but now I saw it states otherwise. |
@lostm1nd that's a different rule - https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-comp.md |
When I try to use static-property-placement rule, I get the following error
Use like this
Version in package.json
In node_modules no file with the description of this rule, but in github this file exist - static-property-placement.js
Is this some kind of mistake or has this rule not been released yet?
The text was updated successfully, but these errors were encountered: