question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Apply same ESLint rules to TypeScript files as well

See original GitHub issue

Currently 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:open
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
silvenoncommented, Oct 23, 2020

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.

1reaction
yencoloncommented, Oct 20, 2020

Of course, assign this to me 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found