forked from salesforce-ux/design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.yml
25 lines (22 loc) · 747 Bytes
/
.stylelintrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ignoreFiles:
- node_modules
- app_modules
- ui/vendor/**
- site/assets/styles/_vendor/**
# Default rules based on
# https://github.com/salesforce-ux/stylelint-config-slds
extends: "stylelint-config-slds"
defaultSeverity: "error"
# Overrides
rules:
"selector-class-pattern":
- "^(slds|site|demo)(-[a-z0-9_-]+|)$"
-
severity: error
resolveNestedSelectors: true
"custom-property-pattern":
# "-g-" left out specifically to ensure 228 is component-level only, we can updated
# to ^sds-[c|g]-([a-z][a-z0-9]*)(-[a-z0-9]+)*$ when theming gets added to Styling Hooks
- "^sds-c-([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
-
message: "All component custom properties must begin with '--sds-c-' and be kebab-case"