Skip to content

Autofix does not migrate imports of pseudo modules #715

@flovogt

Description

@flovogt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    autofixAn issue related to the autofix capabilities

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions