- Updates stylelint to 13.8.0 - Updates ESLint to 7.14.0 - Updates @typescript-eslint to 4.9.0 DISABLE_THIRD_PARTY_CHECK=NPM update R=jacktfranklin@chromium.org Change-Id: I207e204607ede782710e042c17d6510c7f696905 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2566806 Reviewed-by: Jack Franklin <jacktfranklin@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
string-quotes
Specify single or double quotes around strings.
a[id="foo"] { content: "x"; }
/** ↑ ↑ ↑ ↑
* These quotes and these quotes */
Quotes within comments are ignored.
/* "This is fine" */
/* 'And this is also fine' */
Single quotes in a charset @-rule are ignored as using single quotes in this context is incorrect according the CSS specification.
@charset "utf-8"
/* fine regardless of configuration */
The fix option can automatically fix most of the problems reported by this rule.
Options
string: "single"|"double"
"single"
Strings must always be wrapped with single quotes.
The following patterns are considered violations:
a { content: "x"; }
a[id="foo"] {}
The following patterns are not considered violations:
a { content: 'x'; }
a[id='foo'] {}
a { content: "x'y'z"; }
"double"
Strings must always be wrapped with double quotes.
The following patterns are considered violations:
a { content: 'x'; }
a[id='foo'] {}
The following patterns are not considered violations:
a { content: "x"; }
a[id="foo"] {}
a { content: 'x"y"z'; }
Optional secondary options
avoidEscape: true|false, defaults to true
Allows strings to use single-quotes or double-quotes so long as the string contains a quote that would have to be escaped otherwise.
For example, with "single", { "avoidEscape" : false }.
The following patterns are considered violations:
a { content: "x'y'z"; }
a[id="foo'bar'baz"] {}
The following patterns are not considered violations:
a { content: 'x'; }
a[id='foo'] {}