sindresorhus/eslint-plugin-unicorn

`filename-case`: add `$` as an ignored char

Closed

#2,503 opened on Nov 29, 2024

 (2 comments) (1 reaction) (0 assignees)JavaScript (468 forks)user submission
enhancementgood for beginnerhelp wanted

Repository metrics

Stars
 (5,022 stars)
PR merge metrics
 (Avg merge 1d 16h) (399 merged PRs in 30d)

Description

Description

I'm working with tanstack router and the route params are defined with $, like $userId.tsx, but this rule doesn't ignore this char. I saw that it was an ignored char in the past, can you put it again?

Fail

src/app/routes/_area-reservada/area-reservada/certidoes/$idCertidao.tsx

Filename is not in kebab case or pascal case. Rename it to $id-certidao.tsx or $IdCertidao.tsx unicorn/filename-case

Pass

src/app/routes/_area-reservada/area-reservada/certidoes.tsx

Additional Info

No response

Contributor guide