-
Notifications
You must be signed in to change notification settings - Fork 61
Reported lines with errors are incorrect #128
Comments
Can you try export const focusState = css`
outline: none;
` Does that fix the issue? |
Yeah I agree that it's probably our bug not any other software, can't see off the bat what the problem would be, but yeah, probably us at fault. |
@mxstbr That doesn't help unfortunately, but we're using Prettier which I have formatting on save anyway, and we've got a Prettier (and linters) step in our CI which would fail the build as well (of course, I turned it off for this test). I've also tried:
To no avail. Interestingly, with that option the linter complains about line 8 If I take out the |
Aha! I've fixed it! Further down the file I had:
Which I was using in other files like: If I insert the
That's my mistake I guess, but the linter reporting the wrong line number is a bit of a pain. Not sure if it's worth keeping the issue open for though? |
Yep, agreed. Again, would appreciate you adding this to the real-world tests so we can replicate the line issue at least! |
Another replication here: https://github.com/styled-components/stylelint-config-styled-components/issues/19 @Jmeyering would you mind also adding your code as a real world test case so we can fix the underlying issue? Thanks! |
Added a breaking test case above |
Awesome, thanks @Jmeyering! I currently don't have time to look into the issue, but the failing test should help any contributions to come in 😊 |
A bit of Googling has led me to believe this is an issue with the Stylelint SC processor...
I'm getting the following error:
4:3 ✖ Unknown word CssSyntaxError
On this file:
Not sure what's wrong there?
P.S. Don't judge me for disabling the default outline - I'm doing it responsibly! 😄
The text was updated successfully, but these errors were encountered: