Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

react/static-property-placement for class components #243

Open
penx opened this issue Sep 9, 2021 · 1 comment
Open

react/static-property-placement for class components #243

penx opened this issue Sep 9, 2021 · 1 comment

Comments

@penx
Copy link

penx commented Sep 9, 2021

As per the question here:

https://stackoverflow.com/q/57490998/1582783

and the issue here

airbnb/javascript#2139

There is a conflict between TS and the airbnb eslint config on where to set defaultProps on a class based component.

Should eslint-config-airbnb-typescript override the react/static-property-placement setting in order to allow static defaultProps on class based components?

e.g. to 'react/static-property-placement': ['error', 'static public field']

@penx
Copy link
Author

penx commented Sep 16, 2021

Also 👋 I realised we briefly worked together in 2016 😄

Thanks for this project!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant