I looked at stylelint's docs and only saw a way to disable stylelint for running on for specific files/directories but what I really want is a way to disable specific rules) for specific files/directories. Is there a way to achieve that? I don't…
I'm setting up a React project with TypeScript and Styled Components from scratch. I've already done this before and in the previous project the VS Code Stylelint extension worked great.
However, in my new project I can't get it to work in .ts or…
I'm trying to lint more than one directory at once with stylelint.
In my package.json file I have:
"scripts": {
"lint": "stylelint 'pages/**/*.scss', 'global/components/**/*.scss' ; exit 0"
},
If I remove either 'pages/**/*.scss' or…
In my stylelintrc.js
module.exports = {
"extends": [
"stylelint-config-standard",
"stylelint-config-css-modules",
],
"plugins": [
"stylelint-performance-animation",
],
...
In codeclimat.yaml i turn on stylelint engine and take…
I use gulp-stylefmt and it run every time I save any CSS file:
function stylelint () {
return gulp.src('src/**/*.css')
.pipe($.stylefmt())
.pipe(gulp.dest('src/'));
}
Same time gulp.watch watches the path src/**/*.css and run stylelint…
I'm trying to replace grunt-scss-lint (because of its Ruby dependency and silent failure when you don't have the gem installed) with stylelint.
The problem I'm running into is the following error:
$ grunt …
I get this Stylelint error suddenly in two of my components, I don't know why.
Unexpected empty source (no-empty-source)
I created a third component and removed content to the point where there is no content left, and the error still shows for that…
I am using stylelint and eslint and I just mentioned that it is possible to click on a line in eslint to directly open the file in my IDE and jump to that selected line.
I was wondering if it is possible to add a similar feature to stylelint since…
Not able to disable the styelint rule "no-descending-specificity" by assigning null value within the stylelintric.json file
"rules": {
"no-descending-specificity": null
}
Instead I had to write the below line to the top of my scss file
/*…
Right now, I'm trying to format my SCSS code with Prettier, with the rules of Stylelint. I'm having a hard time getting these two to line up.
For example, I keep getting declaration-colon-new-line error with stylelint (which is correct) for the…
I'm looking for a Stylelint (and/or ESLint) plugin/rule that has a rule for avoiding the usage of obsolete CSS properties like grid-row-gap.
I'd like to believe someone already made this, but I couldn't find anything like it via Google, GitHub, or…
I have a bit of a situation here.
I'm using SCSS in a React app using sass-loader and I lint my SCSS/CSS using stylelint and the extension for it stylelint-scss.
I borrowed some code from here:…