Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Support or ignore prop-types in mixed JS/TypeScript projects #1461
I'm working on a project with mixed JS and TypeScript support. We heavily use eslint rules in js and our ts goes through the typescript-eslint-parser. However, the interface definition of the typescript -> js ast doesn't get picked up by the prop-types rule like it does for Flow.
Unfortunately, the ast around the prop definition seems relatively unstructured. However, the typescript compiler itself makes this rule redundant anyway.
Instead of adding complexity to this rule, I propose that an option is added to either explicitly ignore ts/tsx files or make a config array to ignore specific extensions.
What do you think?