Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing autofix for jQuery.sap.resources #521

Open
flovogt opened this issue Feb 7, 2025 · 1 comment
Open

Missing autofix for jQuery.sap.resources #521

flovogt opened this issue Feb 7, 2025 · 1 comment
Labels
autofix An issue related to the autofix capabilities enhancement New feature or request

Comments

@flovogt
Copy link
Member

flovogt commented Feb 7, 2025

Missing autofix for jQuery.sap.resources

jQuery.sap.resources is deprecated. Therefore an autofix should be offered by UI5 linter.

Deprecated Usage

const bundle = jQuery.sap.resources({
  url: "resources/i18n.properties"
})

Recommended Usage

sap.ui.define([
  "sap/base/i18n/ResourceBundle"
], (ResourceBundle) => {
  const bundle = ResourceBundle.create({
    url: "resources/i18n.properties"
  });
}):
@flovogt flovogt added autofix An issue related to the autofix capabilities enhancement New feature or request labels Feb 7, 2025
@flovogt
Copy link
Member Author

flovogt commented Feb 7, 2025

Will be implemented in CPOUI5FOUNDATION-990.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autofix An issue related to the autofix capabilities enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant