SimenB / stylint

Improve your Stylus code with Stylint
https://simenb.github.io/stylint/
GNU General Public License v2.0
348 stars 61 forks source link

duplicate property or selector, consider merging {block} #462

Open piraveen opened 4 years ago

piraveen commented 4 years ago

Stylint complains about "duplicate property or selector, consider merging" for the usage of "{block}" in completely different functions.

// Should be used for "Print" style
view-print()
    @media print
        {block}

// For devices with a viewport up to 320px width
breakpoint-mobile-xs-view()
    @media screen and (max-width: 320px)
        {block}

// For devices with a viewport up to 1280px width (usually laptops & desktops)
breakpoint-desktop-view()
    @media screen and (min-width: 981px)
        {block}