-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attribute values throwing warning #212
Comments
@PalleZingmark can i get more information about your config? i am not seeing this locally. ie, that selector is not tripping up the |
@rossPatton Certainly, here´s how it's setup:
gulpfile.js gulp.task("stylint", shell.task([
"stylint ./app/assets/stylus/ -c .stylintrc"
])); .stylintrc {
"blocks": false,
"brackets": "always",
"colons": "always",
"colors": "always",
"commaSpace": "always",
"commentSpace": "always",
"cssLiteral": "never",
"depthLimit": 4,
"duplicates": true,
"efficient": "always",
"extendPref": false,
"globalDupe": false,
"indentPref": 2,
"leadingZero": "never",
"maxErrors": false,
"maxWarnings": false,
"mixed": true,
"namingConvention": "BEM",
"namingConventionStrict": true,
"none": "never",
"noImportant": true,
"parenSpace": "never",
"placeholders": "always",
"prefixVarsWithDollar": "always",
"quotePref": "double",
"semicolons": "always",
"sortOrder": false,
"stackedProperties": "never",
"trailingWhitespace": "never",
"universal": false,
"valid": true,
"zeroUnits": "never",
"zIndexNormalize": false
} |
thanks, i'll take another look tonight |
still can't replicate this. i've tested the following ways with your config:
sorry to not be more help. closing for now (if anyone else has this issue I will re-open). |
@rossPatton This is so weird. I've tested this issue now on 5 different setups and they all generate the same warning. Here is the exact code I've tested on: https://www.dropbox.com/sh/5f531dyxiosb66e/AAC3YDwbH6R9ImwPvhUqy9dFa?dl=0
|
I also get this bug when running @PalleZingmark test case with stylint 1.2.5, with Node 0.12.7 on Mac OSX 10.10.5 |
Found another interesting issue regarding I used the same setup, but with this code: .foo {
display: block;
}
And when I removed the whitespace, I got no warnings at all. |
that is very weird. hmmm |
If I look at Line 4 in stylint/src/checks/stackedProperties.js, does that regexp take a trailing whitespace into the calculation?
|
prolly not. i trim my trailing whitespaces by default (via sublime settings) so most likely i missed that case |
so, this wasn't in the latest release (1.3.0) but i hope to get to it for 1.3.1 |
this should be fixed in 1.3.2 |
Using
v1.2.3
:div:not([style="display: block;"]) { display: none; }
-> Warning: avoid one liners. put properties on their own line
The text was updated successfully, but these errors were encountered: