Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Ali Ramazon
@Safarali
Hi there, if any body used stylelint with prettier for scss. Prettier adding semicolons to not all scss/css values. '
Ali Ramazon
@Safarali
Thanks
Alexander Akait
@alexander-akait
yes
can you provide example
LouisEleven
@LouisEleven
你好
Marc G.
@Mouvedia
Hello, how do you use a formatter using vue-cli-service lint:style (which internally use stylelint)?
it probably has to do with --options but I can't make it work
Marc G.
@Mouvedia
found the answer : --formatter name
it's not documented
Mattias Hällkvist
@emattias
Can a plugin disable any rule?
I want a plugin that can rules if a line git commit is before a configured date. Is there such a plugin or do I have to build it? If so, can plugins do it and any tips for how to do it is welcome! :)
Jonathan Neal
@jonathantneal
Mattias, you want to know the most recent git date of any given line in a particular CSS rule? 👈 @emattias
Mattias Hällkvist
@emattias
I want to introduce a stylelint rule that in a big code base has alot of violations of that rule. It hard and risky to change all of them. So I want to set the rule to only complain about violations on line changed from a certain date and forward
Jonathan Neal
@jonathantneal
@emattias, that makes sense, and I could help you build this. There was a project called precise-commits that attempted to do this, but it has been abandoned for about 2 years.
Jonathan Neal
@jonathantneal
Jonathan Neal
@jonathantneal
@emattias, this looks like exactly what you want — https://www.npmjs.com/package/@primer/stylelint-diff-filter
Jonathan Neal
@jonathantneal
And the repository for source — https://github.com/primer/stylelint-diff-filter
Edoardo Cavazza
@edoardocavazza
Hello! I was looking for recursive import support for https://github.com/csstools/stylelint-value-no-unknown-custom-properties, but it seems that a new version has not been released after the merge of the feature. Is there any issue with it?
1 reply
Marc G.
@Mouvedia
@jonathantneal
I have this:
{
  "*.{vue,css,scss,sass}": "cross-env-shell STYLELINT_DIFF_FORMATTER=json STYLELINT_DIFF=$(git diff --staged) stylelint --custom-formatter=node_modules/@primer/stylelint-diff-filter",
}
Do you see the error?
I tried backticks as well
Marc G.
@Mouvedia
end up using a .sh file
Caleb Fetzer
@lqze
Hello, does anyone here have good success with stylelint and laravel.mix ? It doesn't seem to run on mix.sass :/
Alexandre Santos
@Alecell
Hey people, I'm facing an issue that I'm dying trying to solve, if anyone know how to fix it, would be a lot of help! https://stackoverflow.com/questions/71610110/setup-stylelint-with-emotionjs-on-a-nextjs-project
hellosir79
@hellosir79
is there a way on the command line to scan for scss and html files?
hellosir79
@hellosir79
looks like npx stylelint "**/.{scss,html}" did the trick
Kranthi93
@Kranthi93

I see this error in Unknown word CssSyntaxError in all the tsx files around import statemnets
this is stylelint.json I have

{
"extends": ["./.stylelintrc.json"],
"rules": {
"indentation": 2,
"rule-empty-line-before": "always"
},
"ignoreFiles": ["**/palette.built.css"]
}

3 replies
Emecheta
@Emecheta
Hello
I'm new here and want to learn more
Charles Hampton
@Hampton226_gitlab
The solution worked for me
https://www.mythdhr.net/