New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some errors not reported #2
Comments
@jeddy3 the do you have any idea where just trying to figure out the fix here. seems to be a choice between:
but im guessing there's a good reason for it so it should probably be the former rather than the latter, once i understand it FYI the styled components syntax in particular has a questionable AST structure in that it has a |
I think it's left over from when we used to include
I'm not too familiar with custom syntaxes, but I think this will be okay as I assume the <a style="color: red; padding: 1rem;">foo</a> And we'll want to treat those in Stylelint as valid declarations (even if they don't belong to a rule). If we don't already, then it's a bug in our |
great, i was hoping that's the case :D ill open a PR if you haven't already |
Hi @43081j 👋 First of all, thanks for all of your hard work on this and also
postcss-js-core
, so amazing!It appears that some Stylelint errors are not reported with
customSyntax: 'postcss-styled-components'
along with setting some standard rules usingextends: ['stylelint-config-recommended']
(eg. such asproperty-no-unknown
):It seems like the
css
tagged template literals are possibly not checked at all? 🤔This is also similarly broken when using Emotion:
I've created an interactive demo of this on Replit.
To use it, change to the Shell tab on the right and run
npm install
and thennpm run lint
.Demo (Replit): https://replit.com/@karlhorky/customSyntax-postcss-styled-components#styled-components.js
Note that this does not use the nesting or other features of Sass (eg. to test out #1) because I haven't been able to get
customSyntax: "postcss-styled-components/scss"
working yet, as I mentioned here:I will open new issues about any problems with these features once I can get the other entrypoints working.
The text was updated successfully, but these errors were encountered: