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
class MyClass extends Component {
myFunction() {...}
}
This feature is provided by the transform-class-properties transformation, included in the stage2 babel preset. There are other projects that are reporting the same. This seems somehow related to ESLint v4, as in the v3 line this error doesn't happen.
On upgrading ESLint to v4, we ran into the following issue: class properties that are arrow functions are reported as
no-undef
issues.So this is no longer valid:
But this is:
This feature is provided by the
transform-class-properties
transformation, included in thestage2
babel preset. There are other projects that are reporting the same. This seems somehow related to ESLint v4, as in the v3 line this error doesn't happen.Will need more time to investigate, so in the meantime, I'm reverting the upgrade.
The text was updated successfully, but these errors were encountered: