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

Stylint chokes on hash syntax #339

Open PhiLhoSoft opened 8 years ago

PhiLhoSoft commented 8 years ago

Stylus supports hashes. I have a file with the declaration:

$directions = {
    top: {
        border-width: 0 ($width * 0.5) $height ($width * 0.5),
        border-color: transparent transparent $color transparent
    },
    topRight: {
        border-width: 0 $width $height 0,
        border-color: transparent $color transparent transparent
    },
    // [...] Many more
}

I get these warnings:

$ stylint ./app/styles/global/mixins.styl
./app/styles/global/mixins.styl
11:1 brackets warning unnecessary bracket

./app/styles/global/mixins.styl
12:5 colons warning unnecessary colon found

./app/styles/global/mixins.styl
13:2 brackets warning unnecessary bracket

./app/styles/global/mixins.styl
15:15 colons warning unnecessary colon found

I enclose the section with // @stylint off/on but I would appreciate a native support...