Incompatibility with @typescript-eslint
See original GitHub issueWhen we use the config @typescript-eslint/recommended-requiring-type-checking
from typescript-eslint we have to set parserOptions.project
.
It seems that eslint-mdx
overwrites the parserOptions.project
config because when we run eslint
we get this error:
Error: Error while loading rule '@typescript-eslint/no-misused-promises': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top Results From Across the Web
typescript-eslint/eslint-plugin@2.3.2: The engine "node" is ...
node. js - @typescript-eslint/eslint-plugin@2.3.2: The engine "node" is incompatible with this module - Stack Overflow. Stack Overflow for ...
Read more >Using ESLint with TypeScript
In this lesson, we will learn how to use ESLint in a TypeScript project and how it is beneficial. Technical requirements.
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...
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 >eslint-config-canonical - npm
Rule CN AB GG SD XO
@babel/new‑cap ❌ 👻 👻 👻 👻
@babel/no‑invalid‑this 🚨 👻 👻 👻 👻
@babel/no‑unused‑expressions 🚨 👻 👻 👻 👻
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
@JounQin Sure. I just figured it out, as indicated in https://github.com/mdx-js/eslint-mdx/issues/251#issuecomment-963837780
This is what my
overrides
array looks like in eslintrc:I’ve found that this is required if using the
@typescript-eslint/parser
and the@typescript-eslint/recommended-requiring-type-checking
plugin@jackkrone You’d better provide your reproduction instead.