SublimeLinter-contrib-stylelint icon indicating copy to clipboard operation
SublimeLinter-contrib-stylelint copied to clipboard

Not working with "String" rules

Open chris-pearce opened this issue 8 years ago • 1 comments

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 avatar Mar 18 '16 04:03 chris-pearce

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.

chris-pearce avatar Mar 18 '16 04:03 chris-pearce