-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.js
53 lines (53 loc) · 1.78 KB
/
.stylelintrc.js
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
53
module.exports = {
// See https://github.com/wagtail/stylelint-config-wagtail for rules.
extends: '@wagtail/stylelint-config-wagtail',
// overrides to the wagtail config
rules: {
// Allow union class names in selectors e.g. &__header
'scss/selector-no-union-class-name': null,
// Override some wagtail specific rules relating to design tokens
'scale-unlimited/declaration-strict-value': [
['color', 'fill', 'stroke', '/-color/'],
{
// The following are as per the wagtail config but need to be reset here
ignoreValues: [
'currentColor',
'inherit',
'initial',
'none',
'unset',
'transparent',
'Canvas',
'CanvasText',
'LinkText',
'VisitedText',
'ActiveText',
'ButtonFace',
'ButtonText',
'ButtonBorder',
'Field',
'FieldText',
'Highlight',
'HighlightText',
'SelectedItem',
'SelectedItemText',
'Mark',
'MarkText',
'GrayText',
'AccentColor',
'AccentColorText',
],
},
],
// Ensure that @include statements are at the top of the declaration block but not nested ones such as the media-query include
'order/order': [{ name: 'include', type: 'at-rule', hasBlock: false }, 'declarations'],
// Allow positioning with physical properties as right to left languages are not supported
'property-disallowed-list': [
// The following rules are as per the wagtail config
'/forced-color-adjust/',
'text-transform',
],
// Allow physical values for clear, float and text-align, as right to left languages are not supported
'declaration-property-value-allowed-list': {},
},
};