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.

Make it compatible with typescript-eslint

See original GitHub issue

Make eslint-config-google rules compatible with the TSLint replacement: typescript-eslint.

This will be valuable for TypeScript projects that follow the Google JavaScript Style Guide, such as Angular.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:25
  • Comments:5

github_iconTop GitHub Comments

2reactions
43081jcommented, Jun 6, 2020

If you extend both the recommend config and the eslint recommended config, it seems to work for me:

  "extends": [
    "google",
    "plugin:@typescript-eslint/eslint-recommended",
    "plugin:@typescript-eslint/recommended"
  ],

eslint-recommended disables a bunch of non-typescript rules which conflict with typescript equivalents.

0reactions
devinrhode2commented, Aug 30, 2021

I think doing this is a great interim strategy:

  "extends": [
    "google",
    "plugin:@typescript-eslint/eslint-recommended",
    "plugin:@typescript-eslint/recommended"
  ],

But, it’s quite un-satisfying, if you are a real TypeScript Junkie/fanboy/lover person. Maybe folks would be better off trying to use Angular core’s config somehow, or using another eslint config altogether.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use ESLint with TypeScript | Khalil Stemmler
ESLint is a JavaScript linter that you can use to lint either TypeScript or JavaScript code. In this post, we'll walk through how...
Read more >
@typescript-eslint/eslint-plugin - npm
An ESLint plugin which provides lint rules for TypeScript codebases. NPM Version NPM Downloads. See https://typescript-eslint.io/architecture ...
Read more >
typescript-eslint
typescript-eslint enables ESLint to run on TypeScript code. It brings in the best of both tools to help you write the best JavaScript...
Read more >
Using ESLint with TypeScript
Why would you use ESLint to check TypeScript code when the TypeScript compiler already performs some code quality checks? Well, the TypeScript compiler...
Read more >
Linting in TypeScript using ESLint and Prettier - LogRocket Blog
Why do we need Prettier with ESLint? Integrating Prettier. Note: There is a compatibility issue with specific versions of Node and the latest ......
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