Open palmjack opened 5 hours ago
Looks like I was able to fix it, would be happy too make PR in order to clarify this possible config in docs
'@eslint-react/naming-convention/filename': ['error', { extensions: ['.jsx', '.tsx', '.ts'], rule: 'kebab-case' }]
Still would be better not to have fixed options in the rule itself
Looks like I was able to fix it, would be happy too make PR in order to clarify this possible config in docs
'@eslint-react/naming-convention/filename': ['error', { extensions: ['.jsx', '.tsx', '.ts'], rule: 'kebab-case' }]
Still would be better not to have fixed options in the rule itself
Great, looking forward to your PR!
Describe the bug
Not sure if it's a bug or a feature, but this rule works for
*.{jsx,tsx}
files only. I'm trying to make it work also for.ts
files, since I want to enforce naming convention in the entire app. I tested on both next.js app and clean vite app.Reproduction
My eslint file (shrinked for demo purposes)
Expected behavior
Throw error for files with
.ts
extensionPlatform and versions
Stack trace
No response
Additional context
No response