forked from sbb-design-systems/lyne-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.json
52 lines (52 loc) · 1.85 KB
/
.stylelintrc.json
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"extends": ["stylelint-config-standard-scss", "stylelint-config-prettier-scss"],
"ignoreFiles": ["dist/**/*", "tools/generate-component/**/*.scss"],
"rules": {
"custom-property-pattern": "^_?(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:\\[.+\\])?$",
"selector-class-pattern": "^(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:\\[.+\\])?$",
"selector-id-pattern": "^(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:\\[.+\\])?$",
"scss/at-mixin-pattern": "^(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:\\[.+\\])?$",
"length-zero-no-unit": [
true,
{
"ignore": ["custom-properties"]
}
],
"scss/comment-no-empty": null,
"scss/at-import-partial-extension": "always",
"property-no-vendor-prefix": [
true,
{
"ignoreProperties": ["text-size-adjust", "appearance"]
}
],
"value-keyword-case": [
"lower",
{
"ignoreKeywords": [
"CanvasText",
"Canvas",
"LinkText",
"VisitedText",
"ActiveText",
"ButtonFace",
"ButtonText",
"ButtonBorder",
"Field",
"FieldText",
"Highlight",
"HighlightText",
"SelectedItem",
"SelectedItemText",
"Mark",
"MarkText",
"GrayText",
"AccentColor",
"AccentColorText"
]
}
],
"number-max-precision": 12,
"value-no-vendor-prefix": [true, { "ignoreValues": ["box"] }]
}
}