UI5 / UI5/linter

Missing autofix for methods related to jQuery.position.*

Open
#577 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Missing autofix for methods related to jQuery.position.*

Methods related to jQuery.position.* are deprecated. Therefore an autofix should be offered by UI5 linter.

Deprecated APIs:

  • jQuery.position.*

Deprecated Usage

var scrollbarWidthR = jQuery.position.scrollbarWidth();

Recommended Usage

sap.ui.define([
   "sap/ui/thirdparty/jqueryui/jquery-ui-position"
], (jQuery) => {
  var scrollbarWidthR = jQuery.position.scrollbarWidth();
});

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.

Research direction

The issue concerns the deprecated jQuery.position.scrollbarWidth() usage and shows the recommended sap/ui/thirdparty/jqueryui/jquery-ui-position dependency. Start by locating existing autofix handling for related deprecated jQuery APIs, then add coverage for this usage and verify that the resulting autofix matches the recommended form.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery, typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.