I use husky to check JS before commit.
In my package.json i have
"scripts": {
"lintStyles": "stylelint app/**/*.scss",
"fixStylesLinting": "stylelint app/**/*.scss --fix",
"lintJS": "eslint app/**/*.js",
"fixJSLinting": "eslint…
PostCSS BEM Linter plugin needs component definition for each block which is a time consuming thing to do in a legacy project.
Is there a way to use stylelint to check for the classes pattern and show error in all stylesheets (.scss in my case) of…
I have a webpack project and I want to use Stylelint for SCSS linting. I have followed the instructions on the Stylelint website and installed:
"stylelint": "^12.0.1",
"stylelint-webpack-plugin": "^1.1.2",
And then I have put this in…
I'm working on trying to integrate stylelint into my freshly created Vue project.
I thought this would be a simple case of using the Stylelint Webpack Plugin but when I run yarn serve, any errors completely freeze it with no output. If I run yarn…
I want to use the css linter "stylelint" on my VScode text editor.
I downloaded the plugin and install it, then I make the "css.validate": false. But i don't have any box that show me error on my CSS files. What can I do ?
I am using stylelints and I have some rules that I want to disable :
in less I have to do calc this way top: calc(~'50% + 30px'); but "function-calc-no-invalid" prevent it
https://stylelint.io/user-guide/rules/function-calc-no-invalid
also, I want…
stylelint *.css --fix not working as expect. Error reporting works well but a file is not fixed.
package.json
{
"devDependencies": {
"stylelint": "^11.1.1",
"stylelint-config-recess-order": "^2.0.3"
}
}
.stylelintrc.json
{
"extends":…
I'm using stylelint with the standard format stylelint-config-standard and I'm encountering this error a lot with my stylesheets:
no-descending-specificity
An example of where it's happening is when I have CSS like:
.footer__social li a…
I configured stylelint in my WebStorm (2018.2.3) in Settings -> Languages and Frameworks -> Stylesheets -> Stylelint. And I have .stylelintrc in my root.
Right now stylelint successfully underlines errors in my css file.
But is there a way to fix…
Does ESLint and Stylelint do the same thing (linting) the project or is one used specifically for certain files? Can I use them both in the same project? Is it a good idea to use more than one linter in general in the same project?
I'm installing stylelint-config-styled-components on a react project.
When I execute npm run lint:css (or use the stylelint command directly through the CLI) I don't get any results. I have intentionally put in extra spaces and duplicate style…
It works ok on ubuntu
I installed stylelint on iOS but when I run it I get
Error: Could not find "stylelint-config-standard". Do you need a configBasedir?
My config file is:
$ cat .stylelintrc.json
{
"extends": "stylelint-config-standard",
…
I followed this doc to add CSS reset to my app.
https://create-react-app.dev/docs/adding-css-reset/#indexcss
But it showed this message:
"stylelint": {
"extends": "stylelint-config-recommended",
"rules": {
"at-rule-no-unknown": null
}
How to fix…