-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.cjs
39 lines (39 loc) · 1.02 KB
/
.stylelintrc.cjs
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
module.exports = {
extends: [
'stylelint-config-html',
'stylelint-config-recommended-scss',
'stylelint-config-recommended-vue/scss',
],
overrides: [
{
files: [
'**/*.vue',
'**/*.scss',
],
rules: {
'unit-disallowed-list': [
['rem', 'em'],
],
// Only allow @kong/design-tokens CSS custom properties
'custom-property-pattern': [
'^(kui).+$',
{
message: "Expected custom property \"%s\" to be sourced from @kong/design-tokens with prefix '--kui-'",
},
],
'custom-property-no-missing-var-function': true,
// Disable the following rules
'no-descending-specificity': null,
'scss/at-import-no-partial-leading-underscore': null,
},
},
],
plugins: [
'stylelint-order',
'@kong/design-tokens/stylelint-plugin',
],
rules: {
'order/properties-alphabetical-order': true,
'@kong/design-tokens/use-proper-token': [true, { disableFix: true }],
},
}