Skip to content

DeprecationWarning: Providing the line argument in the utils.report() function is deprecated #22

Open
@rgant

Description

@rgant
$ stylelint src/styles/global.css 
src/styles/global.css
  line 25   col 3  white collides with #fff  (14
  line 118  col 3  #fff collides with white  (25

  ✖  2 collisions found.

 ⚠ 2 problems (0 errors, 2 warnings)

(node:84272) [stylelint:007] DeprecationWarning: Providing the `line` argument in the `utils.report()` function is deprecated ("plugin/stylelint-no-indistinguishable-colors").
Please pass both `index` and `endIndex` as arguments in the `utils.report()` function of "plugin/stylelint-no-indistinguishable-colors" instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

src/styles/global.css
   25:3  ✖  Unexpected indistinguishable colors "white" and "#fff".                         plugin/stylelint-no-indistinguishable-colors
   86:3  ⚠  Unexpected browser feature "css-resize" is not supported by Safari on iOS 18.1  plugin/no-unsupported-browser-features
   93:3  ✖  Expected variable, function or keyword for "#ececec" of "color"                 scale-unlimited/declaration-strict-value
   98:3  ✖  Expected variable, function or keyword for "#0fe" of "color"                    scale-unlimited/declaration-strict-value
  102:3  ✖  Expected variable, function or keyword for "#a282c0" of "color"                 scale-unlimited/declaration-strict-value
  118:3  ✖  Unexpected indistinguishable colors "#fff" and "white".                         plugin/stylelint-no-indistinguishable-colors
  118:3  ✖  Expected variable, function or keyword for "#fff" of "color"                    scale-unlimited/declaration-strict-value

✖ 7 problems (6 errors, 1 warning)
  4 errors potentially fixable with the "--fix" option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions