Apply same ESLint rules to TypeScript files as well
See original GitHub issueCurrently our ESLint config for JavaScript (Flow) and TypeScript are strictly separated, but when we start adding TypeScript files at some point in the future, we want to have the same ESLint support as we did for Flow files. We should extract the common parts of the configuration and eslintJS.js
and eslintTS.js
should strictly contain config related to Flow and TypeScript respectively, while everything else should be in eslintCommon.js
that both would extend.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to use ESLint with TypeScript | Khalil Stemmler
Run the following commands to setup ESLint in your TypeScript project. ... Create an .eslintrc file. ... In it, use the following starter...
Read more >Lint and Style Your TypeScript Code with ESLint and Prettier
In this tutorial, you'll learn how to integrate linting and code styling into your workflow with TypeScript.
Read more >Linting in TypeScript using ESLint and Prettier - LogRocket Blog
Integrate Prettier with ESLint to automate type-checking in your TypeScript code and ensure that the code has no bugs.
Read more >Configuration Files - ESLint - Pluggable JavaScript Linter
You can put your ESLint project configuration in a configuration file. You can include built-in rules, how you want them enforced, plugins with...
Read more >ESLint on TypeScript and JavaScript Files - Duncan Leung
Use the Overrides config in ESLint ... The ESLint config allows declaring overrides based on TypeScript file .ts / .tsx glob patterns which...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s true, it’s kinda standalone currently, but try applying to it everything that isn’t specifically Flow-related so we see what happens. When we start adding TypeScript files at some point in the future, we want to have the same ESLint support as we did for Flow files.
Of course, assign this to me 👍