Replies: 1 comment 7 replies
-
Converted to a discussion -> Idea because that's not a bug, as Biome works as expected. Please share a possible solution to improve the rule, because it's the first that hear about "style in extensions" |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environment information
Rule name
useFilenamingConvention
Playground link
Not reproducible in the playground.
Expected result
In our project, we are using kebab case for file naming. To distinguish between "layers," we are using suffixes.
For User, we might have several files:
user.entity.ts, user.service.ts, user.repository.ts, user.use-case.ts.
This works really well.However, the problem is with
user.use-case.ts
Biome shows an error:The file extension should be in lowercase without any special characters.
Other examples include
user.unit-test.ts
anduser.e2e-test.ts
.The expected result is no error for the second and following extensions.
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions