Skip to content

Commit

Permalink
Move assignment of errors on ts syntactic and semantic issues to obje…
Browse files Browse the repository at this point in the history
…ct assign
  • Loading branch information
peanutenthusiast committed Mar 27, 2024
1 parent af9fb0c commit afcca53
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/parser/src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,14 @@ function parseForESLint(
options.ecmaFeatures = {};
}

/**
* Override errorOnTypeScriptSyntacticAndSemanticIssues and set it to false to prevent use from user config
* https://github.com/typescript-eslint/typescript-eslint/issues/8681#issuecomment-2000411834
*/
options.errorOnTypeScriptSyntacticAndSemanticIssues = false;

const parserOptions: TSESTreeOptions = {};
Object.assign(parserOptions, options, {
jsx: validateBoolean(options.ecmaFeatures.jsx),
/**
* Override errorOnTypeScriptSyntacticAndSemanticIssues and set it to false to prevent use from user config
* https://github.com/typescript-eslint/typescript-eslint/issues/8681#issuecomment-2000411834
*/
errorOnTypeScriptSyntacticAndSemanticIssues: false,
});
const analyzeOptions: AnalyzeOptions = {
globalReturn: options.ecmaFeatures.globalReturn,
Expand Down

0 comments on commit afcca53

Please sign in to comment.