Update index.js – Removed deprecated 'line' from utils.report#77
Conversation
|
This resolves #76. But you need to specify
|
|
@akiomik – thanks for the heads up. Would passing the start and end offsets be the correct arguments to pass though? |
|
Any chance this change will make it into the code base? |
|
I ran in to the same error and was testing this PR but it seemed to introduce other issues. Linting errors were showing up in the wrong place afterwards. |
Replace deprecated line/column arguments in utils.report() with index/endIndex relative to the rule node, as required by stylelint's updated API. Uses `index: 0` and `endIndex: node.selector.length` to correctly highlight the offending selector within its node.
|
@graham73may I've pushed up a new version, seems to work OK for me now. |
|
@stuartbrockwell Thanks for this change. Would you mind removing node 18 from the |
|
I'll fix it on master |
|
Thanks @simonsmith ! |
Removing deprecated 'line' from utils.report.
"Stylelint: (notice:6847)[stylelint:D07]DeprecationWarning: Providing the line argument in the util.report() function is deprecated ("plugin/selector-bem-pattern")."