Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 554 Bytes

no-url-domains.md

File metadata and controls

37 lines (27 loc) · 554 Bytes

No Url Domains

Rule no-url-domains will enforce that domains are not used within urls.

Examples

When enabled, the following are allowed:

.foo {
  background-image: url('/img/bar.png');
}

.foo {
  background-image: url('img/bar.png');
}

.foo {
  background-image: url('bar.png');
}

When enabled, the following are disallowed:

.foo {
  background-image: url('https://foo.com/img/bar.png');
}

.foo {
  background-image: url('http://foo.com/img/bar.png');
}

.foo {
  background-image: url('//foo.com/img/bar.png');
}