Following code:
sap.ui.define([
"sap/ui/core/BarColor",
], (BarColor) => {
"use strict";
return {
getMyColor: () => BarColor.POSITIVE
}
});
should be migrated by ui5lint --fix to
sap.ui.define([
"sap/ui/core/library",
], (coreLibrary) => {
"use strict";
return {
getMyColor: () => coreLibrary.BarColor.POSITIVE
}
});
Steps to Reproduce the Issue
Check out https://github.com/SAP/openui5-sample-app/blob/ui5lint-demo/webapp/controller/App.controller.js to see a complete example.
Following code:
should be migrated by
ui5lint --fixtoSteps to Reproduce the Issue
Check out https://github.com/SAP/openui5-sample-app/blob/ui5lint-demo/webapp/controller/App.controller.js to see a complete example.