This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
v5.1.1
- Added a new custom rule
shopify/content-no-strings
that disallows hard-coded strings as values for thecontent
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; }