c3b-lint 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -98,7 +98,8 @@ export function checkCssTokens(report) {
98
98
  add(colours, colour, where);
99
99
  }
100
100
  }
101
- if (decl.prop === 'font-family' && !/var\(/.test(value)) {
101
+ // a keyword (inherit, initial, unset, revert) is not a font literal
102
+ if (decl.prop === 'font-family' && !/var\(/.test(value) && !/^(inherit|initial|unset|revert|revert-layer)$/.test(exact)) {
102
103
  add(fonts, exact, where);
103
104
  }
104
105
  if (SPACING_PROPERTIES.test(decl.prop) && !/var\(|calc\(|%|auto|^0$/.test(value)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c3b-lint",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "Lints a co:lab project against the rules a tool can check: ESLint, Stylelint, the 500-line limit and the shared .editorconfig; --init writes the config files.",
5
5
  "license": "GPL-3.0",
6
6
  "type": "module",