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

Use latest base config #27

Merged
merged 1 commit into from
Feb 18, 2022
Merged

Use latest base config #27

merged 1 commit into from
Feb 18, 2022

Conversation

aaronmars
Copy link
Contributor

In addition to updating to the latest base config, also:

  • Add a rule to enforce that functional components are only implemented as arrow functions
  • Allow for static class variables in the react/sort-comp rule

@JeremyRH
Copy link
Contributor

Add a rule to enforce that functional components are only implemented as arrow functions

Does that mean we can't do this?

export default function Component() {...

@aaronmars aaronmars force-pushed the update-base-add-rules branch from 537c2ca to 8ad9873 Compare February 18, 2022 18:17
@aaronmars
Copy link
Contributor Author

After some discussion, I'll turn "off" the arrow function enforcement and leave that decision to the end users to turn on or off.

@aaronmars aaronmars requested a review from JeremyRH February 18, 2022 18:28
@aaronmars aaronmars merged commit cc07289 into master Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants