Skip to content

Commit

Permalink
fix: Use jsx: preserve option for scanned documents
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Mar 29, 2024
1 parent 29070ab commit c2b323b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/detectors/typeChecker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ const DEFAULT_OPTIONS: ts.CompilerOptions = {
// an "import * as ABC" instead of a default import is created.
// This logic needs to be in sync with the generator for UI5 TypeScript definitions.
allowSyntheticDefaultImports: true,
// Allow parsing of renamed html (to jsx) files
jsx: ts.JsxEmit.Preserve,
};

export class TsProjectDetector extends ProjectBasedDetector {
Expand Down
3 changes: 0 additions & 3 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
// Allow JS in order to check the JSTokenizer
"allowJs": true,

// Allow parsing of renamed html (to jsx) files
"jsx": "preserve",

// Limit the set of types since we don't want to validate the UI5 types required for linting
// (i.e. @sapui5/types, jquery, three). For the lack of an exclude option, we use include.
"types": [
Expand Down

0 comments on commit c2b323b

Please sign in to comment.