import-notation
Specify string or URL notation for @import rules.
@import url("x.jpg");/** ↑ * This notation */Use this rule to enforce a convention. @import accepts a string or a url() function, and both load the same file.
Choose:
"url"to match how other files are referenced, e.g. inbackground-image"string"for brevity
The fix option can automatically fix all of the problems reported by this rule.
This rule supports 2 message arguments: the import value and its expected notation.
Options
Section titled “Options”"string"
Section titled “"string"”@import rules must always use string notation.
{ "import-notation": "string"}The following patterns are considered problems:
@import url(foo.css);@import url('foo.css');@import url("foo.css");The following patterns are not considered problems:
@import 'foo.css';@import "foo.css";@import rules must always use URL notation.
{ "import-notation": "url"}The following patterns are considered problems:
@import 'foo.css';@import "foo.css";The following patterns are not considered problems:
@import url(foo.css);@import url('foo.css');@import url("foo.css");