Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to config naming convention for Relay fragments #995

Open
chengyin opened this issue Mar 22, 2022 · 1 comment
Open

Not able to config naming convention for Relay fragments #995

chengyin opened this issue Mar 22, 2022 · 1 comment
Labels
kind/enhancement New feature or request process/candidate Candidate for next Milestone.

Comments

@chengyin
Copy link

Relay recommends <module_name>_<property_name> style naming for fragments. e.g., UserComponent_user. This is neither pascal case nor snake case. As far as I know, there is no way to config the naming convention rule to check for this type (I'd define it as [PascalCase]_[camelCase]). Allowing a custom regex would also work.

@dimaMachina dimaMachina added the kind/enhancement New feature or request label Mar 22, 2022
@chengyin chengyin changed the title No able to config nam for Relay fragments Not able to config naming convention for Relay fragments Mar 22, 2022
@dimaMachina dimaMachina added the process/candidate Candidate for next Milestone. label Jun 4, 2022
@Jugbot
Copy link

Jugbot commented Aug 5, 2023

It is common for react modules to be PascalCase and other modules to be camelCase, so it would be nice to somehow combine this rule with match-document-filename.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request process/candidate Candidate for next Milestone.
Projects
None yet
Development

No branches or pull requests

3 participants