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

Kebab filename export for react components #18

Open
Enase opened this issue Feb 23, 2023 · 1 comment
Open

Kebab filename export for react components #18

Enase opened this issue Feb 23, 2023 · 1 comment

Comments

@Enase
Copy link

Enase commented Feb 23, 2023

Is there any chance to add an ability to have kebab filename for pascal type of export (react component)?

Rule sample:
"canonical/filename-match-exported": [ 2, { "transforms": "kebab" } ]

Filename sample:
thumb-up.tsx

Export sample:
export default ThumbUp

Current state:
Error:
1:1 error Filename 'thumb-up' must match the exported and transformed name 'thumbUp' canonical/filename-match-exported

Expected: No error

@Enase
Copy link
Author

Enase commented Feb 23, 2023

PS:
with { transforms: ['null', 'camel'] } I have error:
Filename 'thumb-up' must match any of the exported and transformed names 'ThumbUp', 'thumbUp' canonical/filename-match-exported

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