[consistent-type-imports] support decorator metaData without specifying project #4638
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
enhancement
New feature or request
package: parser
Issues related to @typescript-eslint/parser
For projects that use "emitDecoratorMetaData: true" in
tsconfig.json
If we want to use
consistent-type-imports
, we have to specifyproject
inparserOptions
, 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
inparserOptions
, 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?
emitDecoratorMetaData: true
Is there a way to just tell
consistent-type-imports
to act as ifemitDecoratorMetaData: true
is set, without really compiling with typescript?such as add an option to the rule
The text was updated successfully, but these errors were encountered: