Make it compatible with typescript-eslint
See original GitHub issueMake 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:
- Created 4 years ago
- Reactions:25
- Comments:5
Top 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 >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
If you extend both the recommend config and the eslint recommended config, it seems to work for me:
eslint-recommended disables a bunch of non-typescript rules which conflict with typescript equivalents.
I think doing this is a great interim strategy:
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.