diff --git a/.stylelintrc.yml b/.stylelintrc.yml index 269f50a0..043c0c12 100644 --- a/.stylelintrc.yml +++ b/.stylelintrc.yml @@ -104,7 +104,9 @@ rules: ignore: - after-comment selector-attribute-quotes: always - selector-class-pattern: null # when doing themes, you mostly do not decide on class names + selector-class-pattern: + - ^([a-z][a-z0-9]*)(-[a-z0-9]+)*$ + - {} selector-id-pattern: - ^([a-z][a-z0-9]*)(-[a-z0-9]+)*$ - {} @@ -123,5 +125,6 @@ rules: color-no-hex: true declaration-no-important: true font-weight-notation: numeric - no-unknown-custom-properties: [true, {severity: error}] # equivalent to "no undeclared variables" in other linters max-nesting-depth: 3 + no-unknown-custom-properties: [true, {severity: error}] # equivalent to "no undeclared variables" in other linters + selector-nested-pattern: ["&", {splitList: true, message: "Nested selectors should include a &."}] diff --git a/build.sh b/build.sh index 51c3884f..36444dbe 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,6 @@ # Style Settings tab is opened. # - bumps version number in css file and manifest # - updates download counts in badges of the README files -# - copies the stylelint-config for documentation # - update changelog # - git add, commit, pull, and push to the remote repo diff --git a/theme.css b/theme.css index 201f394d..431cb238 100644 --- a/theme.css +++ b/theme.css @@ -9,7 +9,9 @@ https://github.com/chrisgrieser/shimmering-focus /* ───────────────────────────────────────────────── */ /* < Globally Disabled Stylelint Rules ──────────────────────────────────────────────────── */ +/* Disabling these, since they make not sense within styling a theme */ /* stylelint-disable no-descending-specificity */ +/* stylelint-disable selector-class-pattern */ /* ───────────────────────────────────────────────── */ /* < Fonts (base64 encoded)