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.
This solves issues where some detections did not work properly due to the way dependencies were resolved. When using relative imports, the module resolution was working, but when for example importing a control from a test, the complete namespace is used, but the corresponding JS file was not found. This change ensures that JS files are resolved and also that the types for a framework library are loaded when it is linted.
- Loading branch information
Showing
7 changed files
with
76 additions
and
72 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
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
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
12 changes: 12 additions & 0 deletions
12
test/fixtures/linter/projects/sap.f/src/sap/f/NewControl.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,12 @@ | ||
sap.ui.define([ | ||
"sap/ui/core/Control" | ||
], function (Control) { | ||
"use strict"; | ||
// This control is used to test cases where a framework library contains a control | ||
// for which no @sapui5/types exist. | ||
// The control and usages of it should still be analyzed properly, e.g. when extending it | ||
// and not defining a renderer. | ||
return Control.extend("sap.f.NewControl", { | ||
renderer: null | ||
}); | ||
}); |
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
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 not shown.