-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issueenhancementNew feature or requestNew feature or requestpackage: parserIssues related to @typescript-eslint/parserIssues related to @typescript-eslint/parser
Description
For projects that use "emitDecoratorMetaData: true" in tsconfig.json
If we want to use consistent-type-imports
, we have to specify project
in parserOptions
, in order to prevent the rule from reporting false positives.
Everything works OK as we configure as above. But we encounter performance issues. Linting time is too long.
As we specified project
in parserOptions
, then we uses type-aware linting(In other words, we need to compile source code by typescript).
However, is it really the best practice to do like this?
- I only need the parser to understand
emitDecoratorMetaData: true
- I do not need the time-costing type-aware linting.
Is there a way to just tell consistent-type-imports
to act as if emitDecoratorMetaData: true
is set, without really compiling with typescript?
such as add an option to the rule
"@typescript-eslint/consistent-type-imports": ['error', { emitDecoratorMetaData: true }]
Metadata
Metadata
Assignees
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issueenhancementNew feature or requestNew feature or requestpackage: parserIssues related to @typescript-eslint/parserIssues related to @typescript-eslint/parser