I'm trying to use Eslint to enforce PascalCase
on my React components.
I've looked at all the existing plugins/rules I could find, and here are my issues:
I'm using Typescript (.tsx extensions), so react/jsx-pascal-case won't work for me.
For files that are not components, I do want to allow kebab-case, so i'd like to filter out only files with the .tsx extension.
TL;DR - Id like an Eslint rule to enforce PascalCase, but only on files ending with .tsx
.
Thanks!