Skip to content

AirBnb style guide deviation suggestion - use named exports #8641

Closed

Description

As discussed in a prior meeting, we are planning to migrate to the airbnb style guide, but if we have reason to deviate from specific rules, we can discuss as a team. It was mentioned that preference isn't good enough, so I'm going to throw a rule out there I'd like to deviate from and my reasons.

I don't like default exports and, if it were up to me, would require named exports.

Objective reasons:

  • Makes searching for references easier
  • Helps with following and understanding the code
  • Reduces bugs when refactoring
  • Makes it easier to safely find and remove dead code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions