Closed jszpila closed 8 years ago
I can confirm I'm having this same issue, using stylint 1.5.5 cli.
Source:
.foo {
font-size: 16px;
}
.bar {
font-size: 24px;
}
And I get:
6 duplicates warning duplicate property or selector, consider merging
I get the same error with and without bracket syntax. Disabling this rule until there's a fix.
this should be fixed in 1.5.6
Getting the message:
When I have the same property on different elements or classes. This seems like unintended behavior, unless I'm missing something.
Below is the entirety of my .stylus file; as you can see, the only duplicate property is margin. If I disable the duplicates rule it works fine, but obviously doesn't do what I'd like (find duplicated properties within the same class or element), setting globalDupes to false seems to have no effect (as I would suspect, but I figured I'd try just in case). Removing margin and plugging in different properties works fine as anticipated, but even with different properties, if two classes have the same property (even with different values) it still fails.
This is my .stylintrc:
Using stylint 1.5.5 and gulp-stylint 3.3.0. I googled around and found that this was previously an issue but that it looks as if it had been resolved in prior versions. Any ideas?