I want to lint CSS into Pug style. tag raw content (CSS) and style attribute content (CSS).
Looks like Stylelint is a right tool to do this.
Stylelint can lint CSS strings and code blocks in html files, working as expected.
But if I try to do the…
I have searched and am unable to find an answer to my issue. It is saying 'warnings'is undefined in the gulp-stylelint/index.js file - to clarify, I have not touched this file as it is a "3rd-party" file. I get the same error whether I run it from…
I am working on a project with a large team of developers predominantly with SCSS and markdown files. Due to everyone having their own coding styles we now have a project where different files have different code comment styles and line spacing…
I want to blacklist the height property for all img selectors in the stylesheet, so the aspect ratio of the image is always respected, is it possible with stylelint?
Is there any way to access all existing rules of stylelint in a programatic way? For example some jsons I can parse or a method I can invoke?
For instance the method through which the documentation files are created, if they are made automatically?
I'm wondering why I can't add background-color: red; property on my scss file:
#my_container {
background-color: red; # Added this line and #efefef doesn't work either
Error print on Grunt:
src/sass/app_2/_common/layout/layouts.scss:7:27
✖ …
I have a file called foo.scss with contents:
.foo {
font: {
family: arial;
weight: 600;
}
}
Linting with stylelint 8.4.0 on the command line results in this output:
foo.scss
2:5 ✖ Cannot parse selector …
I am really sorry for this newbie question but I can't see how solve that...
I installed linter-stylelint and tried to configure it like it's said there:
https://atom.io/packages/linter-stylelint
So:
- I placed a stylelint.config.js file in my…
Stylelint shows an error for the key in the Sass map, because Linter suspects that the number should have some units. https://stylelint.io/user-guide/rules/unit-no-unknown/
$resolutions: (
2x: 2dppx,
3x: 3dppx
);
I have implemented STYLELINT in my project.
But currently this shows error by file name.
fileone.scss
Line 10:5 expected this 'rule-xyz'
Line 15:5 expected this 'rule-abc'
Line 25:5 expected this 'rule-123'
anotherfile.scss
Line 12:5 expected this…
I have a mixin that looks like this:
@mixin offset($fraction: 1) {
@if type-of($fraction) != number or not unitless($fraction) {
@include error("#{$fraction} is not a unitless number");
}
margin-left: percentage($fraction);
}
I also have…