UI5 / UI5/linter

Autofix does not migrate imports of pseudo modules

Open
#715 1 comment 0 reactions 1 assignee View on GitHub

@flovogt is already working on this.

Since Aug 10, 2026.

autofix
Dominant language
TypeScript
Stars
79
Forks
13
Avg merge
19h 34m
Merged PRs (30d)
9

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.