-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
Fix developer experience for non-standard syntax in *-no-unknown #4933
Comments
From rule description:
I would suggest using @stylelint/contributors I think we can improve developer experience here. It's a common issue, when developers, who lint Sass files get to this problem (#3293, #3190, #2952). Documentation update it's not enough, because people might setup stylelint and use I propose to add suggestion to use
Copy should be refined, probably. @jeddy3 is good with that :) |
If this was ESLint I would have said "Use the Even if we implement the Documentation saying that I would certainly implement it with overrides in something that wasn't stylelint-org code as An obvious way around my comments would be to adopt These are my initial thoughts, but I wouldn't protest if @hudochenkov merged his solution. |
I agree with the idea of @hudochenkov:
But currently, I think we would be hard to:
Because the adoption might increase the core project's code and our maintenance cost. So, I propose a compromise: to copy the
Note that I have opened the 3 pull requests about the 2 rules (but not merged sadly... 😢 ):
What do you think? |
@ybiquitous I completely agree that we should be trying to improve the developer experience where we can.
I completely agree with this as well. We don't want to overburden the limited resources of the core team. (aside: if we don't think
How would these be integrated? Two options I can think of right now:
For me both of these cause concern for users who want to use I think so far we have four not-mutually-exclusive options:
Please don't take the above as gospel, I'd like feedback. I'm sure there are things I haven't thought of, or different ways of thinking about things that I have considered. |
@nosilleg Thank you for clarifying the problems! I also think we need more discussion and feedback about this issue. |
Yes, I think we can improve the DX here. @nosilleg Thanks for pulling together the proposals.
I agree. I think stylelint should be for CSS while being extensible by the community for other styling dialects. For example, I imagine in the future an external With that in mind and to the problem at hand, I suggest we make tweaks to both the docs and violation message to see if that reduces how often this comes up. We can:
I think that'll improve the DX while keeping the built-in rules (and the code of their violation messages) focused on CSS. |
As there are no objections to the above proposal. I'll label this ready to implement. Please consider contributing if you have time. |
Docs were improved for 14.0.0 release. |
stylelint -s scss
reports@each
and@if
as unknown rulesat-rule-no-unknown
13.7.0
CLI with
stylelint -s scss test.scss
Yes, it's related to SCSS at-rules
No warnings to be flagged.
The following warnings were flagged:
The text was updated successfully, but these errors were encountered: