-
Notifications
You must be signed in to change notification settings - Fork 3
/
stylelint.config.cjs
69 lines (67 loc) · 1.9 KB
/
stylelint.config.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module.exports = {
ignoreFiles: [
'**/node_modules',
'**/dist/**/*',
'docs/.vuepress/**/*',
'docs/assets/css/**/*',
'docs/assets/fonts/**/*',
'**/*.js',
'**/*.cjs',
'**/*.vue',
'**/*.md',
],
extends: [
'stylelint-config-standard',
'stylelint-config-rational-order',
'stylelint-config-recommended-less',
],
plugins: [
'stylelint-less',
'stylelint-no-px',
],
fix: true,
customSyntax: 'postcss-less',
rules: {
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['/^ff-/'],
},
],
'media-feature-range-notation': null,
'property-no-unknown': null,
'function-no-unknown': null,
'import-notation': null,
'no-extra-semicolons': null,
'no-descending-specificity': null, // turn off for now, descending cases could be fixed on the last refactoring
'function-calc-no-unspaced-operator': null, // otherwise it will be an error during build
'alpha-value-notation': 'number',
// override stylelint-config-standard rules
'color-function-notation': null,
'custom-media-pattern': null,
'custom-property-pattern': null,
'media-feature-name-no-vendor-prefix': null,
'property-no-vendor-prefix': null,
'selector-class-pattern': null,
'selector-no-vendor-prefix': null,
'value-keyword-case': null,
'value-no-vendor-prefix': null,
indentation: null,
'length-zero-no-unit': true,
'declaration-block-no-redundant-longhand-properties': [
true,
{
ignoreShorthands: ['/grid/'],
},
],
'less/color-no-invalid-hex': null,
'less/no-duplicate-variables': null,
'meowtec/no-px': [
true,
{
message: 'Use dialtone variables such as line-height: var(--lh-200) or width: var(--size-600) or ' +
'padding: var(--space-400) rather than directly setting px. See the lib/build/less/variables folder.',
},
],
},
};