Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
hal869
@hal869

Anyone using 'stylelint-webpack-plugin' managed to successfully ignore patterns,

.stylelintrc
    ...
    "ignorePattern": [...]
    ...

?
My config's linting fine; atm, I just can't get it to ignore files (specifically, under my "/vendor/" path. or ANY path, for that matter)

hal869
@hal869
@JaKXz am I correct in understanding 'stylelint-webpack-plugin' docs that
although configFile: is Default: (undefined), that an existing '.stylelintrc' will be found & used via cosmiconfig module ?
hal869
@hal869
seems that .stylelintrc is used, but that ignorePattern: is, itself, ignored. BUT using .stylelintignore with .gitignore pattern types DOES work
hal869
@hal869

My current stylelint config enables plugin/no-unsupported-browser-features, which is quite helpful.
It does generate hundreds of

Unexpected browser feature "<some feature>" is only partially supported by IE 10,11, Edge 15

warnings.
Those browsers ARE included in my .browserslist. For this plugin, however, I don't care.
Is it possible to exclude checks for individual rules, for specific browsers?
I.e., I just want to turn off these warnings for IE 10,11, & Edge 15

Theodór Tómas
@TheodorTomas
Has anyone here implemented a "create-react-app" along with "styled-components" and has successfully set up stylelint? I can´t seem to get it to work. Even though I am not getting any errors either.
Eric Eastwood
@MadLittleMods
@TheodorTomas Putting stylelint in your PostCSS plugin stack should be sufficient. What errors are you getting? Can you put your code up somewhere public GitLab/GitHub and share it?
xing
@MingXingTeam
hello, any update on this issue: stylelint/stylelint#1973 ?
eslint cant find globally installed package
carmelo rossette
@carmelorossette_twitter
Hi everyone
I have some noob questions
John Vandenberg
@jayvdb
Ask ;)
Timmy Huang
@tihuan
TGIF everyone! Quick question on adding a rule to disallow developers to use flex-grow, flex-shrink, etc. and to use grow directly, since grow intelligently sets other flex properties. How should I do that for my project? Thank you!
Jonathan Neal
@jonathantneal
Hello! I’m writing my first stylelint plugin. How might I access context.fix within stylelint.createPlugin? I don’t see an example, so I’m having trouble understanding https://stylelint.io/developer-guide/rules/#adding-autofixing
Jonathan Neal
@jonathantneal
I have pushed my draft plugin to GitHub, if that helps. https://github.com/jonathantneal/stylelint-logical-properties/blob/master/index.mjs
Abhinav verma
@abhiverma1924
hey , i am trying to make an custom notice board for website frontend using js and i am not getting the code right can anyone help me in this....?
Renato Marinho
@renato2marinho_twitter
Hey guys, I'm GitScrum founder. I want to invite group members to get to know GitScrum. Site: https://site.gitscrum.com/
Ashish M Mahendra
@navinyate
Hi
Jonathan Neal
@jonathantneal
Hi
Chrisdifonso
@Chrisdifonso
image.png
Hi, I am trying to insert a pic into my webpage via css,but It doesn't come up on the website
RamyAlshurafa
@RamyAlshurafa
@Chrisdifonso try to remove the double quotation
Abdellah Ahmed
@abdellahahmed
hello
Jonathan Neal
@jonathantneal
Hello
syedsimanta03
@syedsimanta03
I installed stylelint globally via NPM and have my .stylelintrc file setup for project. Do I still need the vs code stylelint plugin?
Jonathan Neal
@jonathantneal
If you want live reports, yes, I think you do.
The global install just means you can run it from the command line any time you want. The .stylelintrc file means either the vscode plugin or cli util will use that to determine which rules to warn.
syedsimanta03
@syedsimanta03
@jonathantneal thnx
syedsimanta03
@syedsimanta03

Hi please check the image and I want to keep the custom variables like that way, but itz show custom-property-empty-line-before error. Can you please set a rules. I don't need any empty line rule here.

https://imgur.com/a/EI7gkVw

syedsimanta03
@syedsimanta03

"declaration-property-value-whitelist": {
"line-height": [
"/.*em$/"
]
},

I am using the above rule which shows error when I am not using rem or em for line-height. I removed the rule still same error for line-height : 1;

There should be no error for line-height : 1; without unit. there is no rule in our docs

syedsimanta03
@syedsimanta03
anyone?
Jonathan Neal
@jonathantneal
I do not know.
Tommy Hodgins
@tomhodgins
Hello! I was hoping I could ask the right place/way to report CSS parsing bugs in StyleLint. I'm not too concerned if stylelint has a suggestion or a warning about what it finds, what I'm concerned about is StyleLint finding syntax errors in known-valid CSS syntax (which would prevent it from giving valid suggestions, since it doesn't know what it found)
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
Evilebot Tnawi
@evilebottnawi
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