-
Notifications
You must be signed in to change notification settings - Fork 13
Parser service is not using 'tsconfig.json' #50
Comments
Update: issue happens only when filePath is not specified or when its not pointing to real file (eslint ruleTester) |
@armano2 I'll take a look |
solution:
|
What do you mean by "passing parser configuration"? |
// create compiler host
const watchCompilerHost = ts.createWatchCompilerHost(
tsconfigPath,
/*optionsToExtend*/ undefined,
ts.sys,
ts.createSemanticDiagnosticsBuilderProgram,
diagnosticReporter,
/*reportWatchStatus*/ () => {}
);
|
I have issues with making test for eslint in RuleTester, because i'm unable to provide configuration file (i'm not making files there, it's just code) right now to have access to libraries i had to specify empty file and tsconfig in directory. |
It appears to me that even with the ability to pass TypeScript compiler options there, the problem still occurs. In particular, when passing an object with the Instead of giving |
i think issue is somewhere else, we should execute function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean): CompilerHost; |
How would that help? We do actually need a |
|
I'm not sure I understand you completely. Let me try to summarize what I think you are saying; please tell me if I am not correct. MOTIVATION: PROPOSAL: CONCERNS: Regarding your most recent comment, I am certainly open to reviewing changes to |
@uniqueiniquity i did some testings with setup with
its going to be same case for https://github.com/BenoitZugmeyer/eslint-plugin-html (i still have to test it) |
I see. I'm starting to see the underlying issue here. I'm sorry it took so long for me to understand :) I'm looking into ways to resolve this now. I'm worried there might not be a way to handle every case by changing |
@uniqueiniquity Did #53 do enough to warrant closing this now? Or are there further things to work on? |
Yep, my understanding is that #53 addressed the issues discussed here. |
What version of TypeScript are you using?
~3.2.1
What version of
typescript-estree
are you using?5.3.0
What code were you trying to parse?
What did you expect to happen?
typeChecker has no informations about types from
es2015.core
Demo
bradzacher/eslint-plugin-typescript#230
Related to
#22
eslint/typescript-eslint-parser#568
The text was updated successfully, but these errors were encountered: