You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of eslint-plugin-react@7.15.0, the static-methods rule for react/sort-comp has seen a breaking change: it's been split into static-methods and static-variables. See the relevant pull request
It's not a breaking change; static-methods never checked what static-variables checks. Adding that seems reasonable, though, and it'd be semver-patch since the airbnb guide currently doesn't allow using class fields at all.
Ah, makes sense. I upgraded to the newest version and suddenly it was complaining that my static variables had to be at the bottom of the class definition.
As of
eslint-plugin-react@7.15.0
, thestatic-methods
rule forreact/sort-comp
has seen a breaking change: it's been split intostatic-methods
andstatic-variables
. See the relevant pull requestPlease change the rule for react/sort-comp to allow for static variables like so:
The text was updated successfully, but these errors were encountered: