-
Notifications
You must be signed in to change notification settings - Fork 3
line mapping not working right #1
Comments
similar issue. I have inline style tags in my html and I don't think stylelint is properly accounting for the lines of HTML that precede the style tag |
+1 on this! |
+1 |
I have the same question, and i use the |
use the |
As I stated in stylelint-webpack-plugin issue: webpack-contrib/stylelint-webpack-plugin#68 (comment) I changed stylelint-processor-html to @mapbox/stylelint-processor-arbitrary-tags as @repsac-by suggested in the vue-loader issue: vuejs/vue-loader#303 (comment) Now I get correct line numbers via stylelint-webpack-plugin. Also, I reproduced this line number issue directly via stylelint-command (with stylelint-processor-html), when using wildcards in filename: PS C:\xyz-vuejs-app> stylelint src/**/*.vue --syntax scss It works correctly without wildcards: And that 115 is the correct line number. So, maybe the bug has something do with this stylelint-processor-html :) |
+1 |
+1 |
I'm using stylelint for .vue files (vuejs.org) and stylelint-processor-html works and displays the errors/sugestions but with line numbers way off.
My .vue file has 181 lines, and all stylelint suggestions begin at line 283
The text was updated successfully, but these errors were encountered: