|
1 | 1 | {
|
2 |
| - plugins: [ |
3 |
| - 'stylelint-order', |
4 |
| - 'stylelint-declaration-strict-value' |
5 |
| - ], |
6 |
| - rules: { |
7 |
| - 'color-hex-length': 'short', |
8 |
| - 'color-named': 'never', |
9 |
| - 'color-no-invalid-hex': true, |
10 |
| - 'declaration-property-unit-allowed-list': { 'line-height': [] }, |
11 |
| - 'font-family-no-duplicate-names': true, |
12 |
| - 'number-leading-zero': 'always', |
13 |
| - 'number-max-precision': 2, |
14 |
| - 'number-no-trailing-zeros': true, |
15 |
| - 'string-no-newline': true, |
16 |
| - 'length-zero-no-unit': true, |
17 |
| - 'unit-case': 'lower', |
18 |
| - 'unit-no-unknown': true, |
19 |
| - 'value-keyword-case': 'lower', |
20 |
| - 'value-list-comma-newline-after': 'always-multi-line', |
21 |
| - 'value-list-comma-space-after': 'always-single-line', |
22 |
| - 'value-list-comma-space-before': 'never', |
23 |
| - 'value-list-max-empty-lines': 0, |
24 |
| - 'shorthand-property-no-redundant-values': true, |
25 |
| - 'property-case': 'lower', |
26 |
| - 'property-no-unknown': true, |
27 |
| - 'property-no-vendor-prefix': true, |
28 |
| - 'declaration-no-important': true, |
29 |
| - 'declaration-colon-space-after': 'always-single-line', |
30 |
| - 'declaration-colon-space-before': 'never', |
31 |
| - 'declaration-block-no-duplicate-properties': true, |
32 |
| - 'declaration-block-no-redundant-longhand-properties': true, |
33 |
| - 'declaration-block-no-shorthand-property-overrides': true, |
34 |
| - 'declaration-block-semicolon-newline-after': 'always', |
35 |
| - 'declaration-block-semicolon-newline-before': 'never-multi-line', |
36 |
| - 'declaration-block-single-line-max-declarations': 1, |
37 |
| - 'declaration-block-trailing-semicolon': 'always', |
38 |
| - 'block-closing-brace-empty-line-before': 'never', |
39 |
| - 'block-closing-brace-newline-after': [ |
40 |
| - 'always', |
41 |
| - { ignoreAtRules: ['if', 'else'] } |
42 |
| - ], |
43 |
| - 'block-closing-brace-newline-before': 'always-multi-line', |
44 |
| - 'block-no-empty': true, |
45 |
| - indentation: 2, |
46 |
| - 'max-empty-lines': 1, |
47 |
| - 'max-nesting-depth': 2, |
48 |
| - 'selector-list-comma-newline-after': 'always-multi-line', |
49 |
| - 'string-quotes': 'single', |
50 |
| - 'time-min-milliseconds': 150, |
51 |
| - 'order/order': ['declarations', 'rules'], |
52 |
| - 'order/properties-order': [ |
53 |
| - 'z-index', |
54 |
| - 'position', |
55 |
| - 'top', |
56 |
| - 'right', |
57 |
| - 'bottom', |
58 |
| - 'left', |
59 |
| - 'display', |
60 |
| - 'overflow', |
61 |
| - 'width', |
62 |
| - 'height', |
63 |
| - 'margin', |
64 |
| - 'padding', |
65 |
| - 'border', |
66 |
| - 'color', |
67 |
| - 'background', |
68 |
| - 'font-family', |
69 |
| - 'font-size', |
70 |
| - 'text-align' |
71 |
| - ], |
72 |
| - 'scale-unlimited/declaration-strict-value': [ |
73 |
| - ['/color/', 'font', 'font-family', 'font-size', 'z-index'], |
74 |
| - { |
75 |
| - ignoreKeywords: [ |
76 |
| - 'currentColor', |
77 |
| - 'inherit', |
78 |
| - 'initial', |
79 |
| - 'transparent', |
80 |
| - 'auto' |
81 |
| - ] |
82 |
| - } |
83 |
| - ] |
84 |
| - }, |
85 |
| - overrides: [ |
86 |
| - { |
87 |
| - files: ['**/*.scss'], |
88 |
| - customSyntax: 'postcss-scss' |
89 |
| - }, |
90 |
| - { |
91 |
| - files: ['**/*.vue'], |
92 |
| - customSyntax: 'postcss-html' |
93 |
| - } |
94 |
| - ] |
| 2 | + "extends": "stylelint-config-apostrophe" |
95 | 3 | }
|
0 commit comments