generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(amdTranspiler): Extend call without classInfo
UI5 class extend calls with a missing second argument for the class info is now also supported and will be properly transformed into a ES class which improves linter checks on the class code.
- Loading branch information
Showing
8 changed files
with
103 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
test/fixtures/linter/rules/AsyncComponentFlags/Positive_12/Component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Fixture description: | ||
// Async flag (rootView only, no routing) in manifest.json | ||
// No manifest: "json" configuration in metadata | ||
sap.ui.define(["sap/ui/core/UIComponent"], function (UIComponent) { | ||
"use strict"; | ||
|
||
return UIComponent.extend("mycomp.Component"); | ||
}); |
23 changes: 23 additions & 0 deletions
23
test/fixtures/linter/rules/AsyncComponentFlags/Positive_12/manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"_version": "1.12.0", | ||
|
||
"sap.app": { | ||
"id": "mycomp", | ||
"type": "application", | ||
"i18n": "i18n/i18n.properties", | ||
"title": "{{appTitle}}", | ||
"description": "{{appDescription}}", | ||
"applicationVersion": { | ||
"version": "1.0.0" | ||
} | ||
}, | ||
|
||
"sap.ui5": { | ||
"rootView": { | ||
"viewName": "mycomp.view.App", | ||
"type": "XML", | ||
"id": "app", | ||
"async": true | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
test/fixtures/transpiler/amd/Factory_ClassWithoutClassInfo.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
sap.ui.define(["sap/ui/core/UIComponent"], function (UIComponent) { | ||
return UIComponent.extend("mycomp.Component"); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+62 Bytes
(100%)
test/lib/linter/amdTranspiler/snapshots/transpiler.ts.snap
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+29 Bytes
(100%)
test/lib/linter/rules/snapshots/AsyncComponentFlags.ts.snap
Binary file not shown.