kungfusheep / SublimeLinter-contrib-stylelint

this repo is no longer maintained - please see https://github.com/SublimeLinter/SublimeLinter-stylelint
MIT License
116 stars 19 forks source link

Not working with "String" rules #21

Open chris-pearce opened 8 years ago

chris-pearce commented 8 years ago

In my stylelint.config.js I have these rules from http://stylelint.io/user-guide/rules/#string:

'string-no-newline': true,
'string-quotes': 'single'

In my test .scss file I have:

/* 6. String
   ========================================================================= */

/* "string-no-newline" */

.foo {
    content: 'first
        second';
    content: 'first\Asecond';
    content: 'first\\nsecond';
}

.foo[title='something
is probably wrong'] {}

.foo[title='nothing\
is wrong'] {}

.foo {
    font-family: 'Times
        New
        Roman';
    font-family: 'Times New Roman';
}

/* "string-quotes" */

.foo {
    display: "block";
    display: 'block';
}

.foo[title="something is probably wrong"] {}

.foo[title='something is probably wrong'] {}

I'm not seeing any reporting in Sublime Text. Maybe SublimeLinter-contrib-stylelint doesn't support the String rules?

chris-pearce commented 8 years ago

In my Sublime Text console:

1:1  Unexpected newline in string (string-no-newline)
1:1  Unexpected newline in string (string-no-newline)
1:1  Unexpected newline in string (string-no-newline)
1:1  Unexpected newline in string (string-no-newline)
1:1  Expected single quotes (string-quotes)
1:1  Expected single quotes (string-quotes)
1:1  Expected single quotes (string-quotes)
1:1  Expected single quotes (string-quotes)
1:1  Expected single quotes (string-quotes)
1:1  Expected single quotes (string-quotes)
1:1  Expected single quotes (string-quotes)
1:1  Expected single quotes (string-quotes)
1:1  Expected single quotes (string-quotes)
1:1  Expected single quotes (string-quotes)
1:1  Expected single quotes (string-quotes)

Line numbers all screwy and zero reporting.