Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/parser/src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ function parseForESLint(

const parserOptions: TSESTreeOptions = {};
Object.assign(parserOptions, options, {
useJSXTextNode: validateBoolean(options.useJSXTextNode, true),
jsx: validateBoolean(options.ecmaFeatures.jsx),
});
const analyzeOptions: AnalyzeOptions = {
Expand Down
4 changes: 0 additions & 4 deletions packages/parser/tests/lib/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ describe('parser', () => {
// ts-estree specific
filePath: 'isolated-file.src.ts',
project: 'tsconfig.json',
useJSXTextNode: false,
errorOnUnknownASTType: false,
errorOnTypeScriptSyntacticAndSemanticIssues: false,
tsconfigRootDir: 'tests/fixtures/services',
Expand All @@ -62,7 +61,6 @@ describe('parser', () => {
ecmaFeatures: {},
jsx: false,
sourceType: 'script',
useJSXTextNode: true,
warnOnUnsupportedTypeScriptVersion: true,
});
spy.mockClear();
Expand All @@ -71,7 +69,6 @@ describe('parser', () => {
ecmaFeatures: {},
jsx: false,
sourceType: 'script',
useJSXTextNode: true,
loggerFn: false,
warnOnUnsupportedTypeScriptVersion: false,
});
Expand All @@ -98,7 +95,6 @@ describe('parser', () => {
// ts-estree specific
filePath: 'isolated-file.src.ts',
project: 'tsconfig.json',
useJSXTextNode: false,
errorOnUnknownASTType: false,
errorOnTypeScriptSyntacticAndSemanticIssues: false,
tsconfigRootDir: 'tests/fixtures/services',
Expand Down
1 change: 0 additions & 1 deletion packages/types/src/parser-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ interface ParserOptions {
sourceType?: SourceType;
tokens?: boolean;
tsconfigRootDir?: string;
useJSXTextNode?: boolean;
warnOnUnsupportedTypeScriptVersion?: boolean;
moduleResolver?: string;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,8 @@ tester.addFixturePatternConfig('typescript/expressions', {
fileType: 'ts',
ignore: [
/**
* Produced AST is different
* TODO: investigate in more details
* Babel produces incorrect structure for TSInstantiationExpression and optional ChainExpression
* @see https://github.com/babel/babel/issues/14613
*/
'instantiation-expression',
],
Expand Down