feat(Stylelint): Allow targeting Stencila WebComponents
{
- "extends": [
- "stylelint-config-standard",
- "stylelint-config-prettier"
- ],
+ "extends": ["stylelint-config-standard", "stylelint-config-prettier"],
"plugins": [
"stylelint-selector-pattern",
"stylelint-declaration-block-no-ignored-properties",
"stylelint-selector-tag-no-without-class"
],
"rules": {
- "at-rule-no-unknown": [true, {"ignoreAtRules": ["extend", "define-mixin", "mixin"]}],
+ "at-rule-no-unknown": [
+ true,
+ { "ignoreAtRules": ["extend", "define-mixin", "mixin"] }
+ ],
"selector-pseudo-class-case": null,
"no-descending-specificity": null,
"plugin/declaration-block-no-ignored-properties": true,
"plugin/selector-tag-no-without-class": "tag",
+ "selector-type-no-unknown": [
+ true,
+ {
+ "ignoreTypes": ["/^stencila-/"]
+ }
+ ],
"scale-unlimited/declaration-strict-value": [
- ["/color/", "font-size", "fill", "stroke"], {
- ignoreKeywords: ["currentColor", "inherit"],
- disableFix: true
- }],
+ ["/color/", "font-size", "fill", "stroke"],
+ {
+ "ignoreKeywords": ["currentColor", "inherit"],
+ "disableFix": true
+ }
+ ],
"xi/selector-pattern": [
"^(?:{element}{pseudo}?).*$",
{
"combinator": "(:?\\s*(?:>|\\+|~|\\s+|\\|\\|)\\s*)"
}
}
- ],
- },
- "ignoreFiles": [
- "src/shared/styles/mathjax.css"
]
+ },
+ "ignoreFiles": ["src/shared/styles/mathjax.css"]
}
