Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

v5.1.1

Compare
Choose a tag to compare
@castdin castdin released this 10 Jul 14:51
· 68 commits to master since this release
  • Added a new custom rule shopify/content-no-strings that disallows hard-coded strings as values for the content property. This prevents internationalization issues. Keywords are still allowed. The rule is not enabled by default.

The following patterns are considered violations:

.foo::before { content: 'bar'; }
.foo::before { content: open-quote 'Section' counter(section_counter) close-quote; }

The following patterns are not considered violations:

.foo::before { content: ''; }
.foo::before { content: open-quote counter(section_counter) close-quote; }