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

Implement a rule that checks naming scheme consistency #165

Open
illright opened this issue Jan 9, 2025 · 0 comments
Open

Implement a rule that checks naming scheme consistency #165

illright opened this issue Jan 9, 2025 · 0 comments

Comments

@illright
Copy link
Member

illright commented Jan 9, 2025

Originally intended for #8, I thought it might be better to implement it as a generic/built-in/something rule, similar to circular imports, instead of keeping it in the FSD plugin.

Check that all folders in the project use a consistent naming scheme and that all files have consistent separators

Example of a valid, consistent project:

  • 📂 users/
    • User.tsx
    • index.tsx
  • 📂 better-users/
    • BetterUser.tsx
    • getDate.tsx
    • lib.d.ts

Bad example:

  • 📂 folderOne/
    • some_file.tsx
    • other file.tsx
    • ExtraComponent.tsx
  • 📂 folder-Two/
    • ComponentOne.tsx
    • Component-Two.tsx
    • get-something.ts
    • 📂 folder_three/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant