Skip to content

Suppress 9 pre-existing ESLint/DeepSource sonarjs errors #3385

Description

@robin-the-going-merry

Requested by: Michael Letellier

Surfaced while triaging failing e2e checks on #3378 (unrelated to that PR's own changes - these files aren't touched there). ESLint and DeepSource: JavaScript both fail the build on 9 pre-existing sonarjs errors. Decision: suppress rather than fix (Michael, 2026-09-18) - add an inline // eslint-disable-next-line <rule> (with a short reason comment) at each site below, not a global rule change in the eslint config:

  • js/admin/legacy-views.js:398,401 - sonarjs/prefer-native-jquery-alternative
  • js/admin/style.js:1238 - sonarjs/super-linear-regex
  • js/formidable.js:896,2287,2549 - sonarjs/super-linear-regex
  • js/src/admin/admin.js:9652 - sonarjs/prefer-native-jquery-alternative; :10511 - sonarjs/super-linear-regex
  • js/src/admin/styles.js:83 - sonarjs/super-linear-regex

Once done, npx eslint should report 0 errors and DeepSource: JavaScript should pass, with the underlying jQuery/regex code left as-is.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions