|
1 | | -plugins: |
2 | | - - stylelint-prettier |
3 | 1 | # Use LESS preprocessor |
4 | 2 | customSyntax: postcss-less |
5 | 3 |
|
6 | | -rules: |
7 | | - # Prettier integration |
8 | | - prettier/prettier: |
9 | | - - true |
10 | | - - severity: warning |
11 | | - |
12 | | - # Disallow unknown at-rules |
13 | | - at-rule-no-unknown: true |
14 | | - # Warn about empty selectors |
15 | | - block-no-empty: |
16 | | - - true |
17 | | - - severity: warning |
18 | | - # Disallow invalid hex colors |
19 | | - color-hex-length: short |
20 | | - # Disallow invalid hex colors |
21 | | - color-no-invalid-hex: true |
22 | | - # Disallow empty comments |
23 | | - comment-no-empty: true |
24 | | - # Disallow duplicate properties within declaration blocks |
25 | | - declaration-block-no-duplicate-properties: true |
26 | | - # Disallow duplicated font family reverencing |
27 | | - font-family-no-duplicate-names: true |
28 | | - # Disallow missing font family keyword |
29 | | - font-family-no-missing-generic-family-keyword: true |
30 | | - # Disallow an unspaced operator within `calc` functions |
31 | | - function-calc-no-unspaced-operator: true |
32 | | - # Disallow direction values in `linear-gradient()` calls that are not valid according to the standard syntax |
33 | | - function-linear-gradient-no-nonstandard-direction: true |
34 | | - # Disallow !important within keyframe declarations |
35 | | - keyframe-declaration-no-important: true |
36 | | - # Disallow duplicated at-rules |
37 | | - no-duplicate-at-import-rules: true |
38 | | - # Warn if empty sources |
39 | | - no-empty-source: |
40 | | - - true |
41 | | - - severity: warning |
42 | | - # Disallow double-slash comments `(//...)` for clear CSS, as they are not supported by CSS |
43 | | - # and could lead to unexpected results |
44 | | - no-invalid-double-slash-comments: true |
45 | | - # Disallow unknown properties |
46 | | - property-no-unknown: true |
47 | | - # Use double colon notation for applicable pseudo-elements |
48 | | - selector-pseudo-element-colon-notation: double |
49 | | - # Disallow unknown pseudo-class selectors |
50 | | - selector-pseudo-class-no-unknown: true |
51 | | - # Disallow unknown pseudo-element selectors |
52 | | - selector-pseudo-element-no-unknown: |
53 | | - - true |
54 | | - - ignorePseudoElements: |
55 | | - - /^-webkit-/ |
56 | | - - /^-moz-/ |
57 | | - # Disallow unknown type selectors |
58 | | - selector-type-no-unknown: |
59 | | - - true |
60 | | - - ignore: |
61 | | - - custom-elements |
62 | | - # Warn about newlines (unescaped) in strings |
63 | | - string-no-newline: |
64 | | - - true |
65 | | - - severity: warning |
66 | | - # Disallow unknown units |
67 | | - unit-no-unknown: true |
68 | | - |
69 | | -overrides: |
70 | | - # Demo site pages sources |
71 | | - - files: site/**/*.{css,less} |
72 | | - rules: |
73 | | - # Warn about duplicate properties within declaration blocks |
74 | | - declaration-block-no-duplicate-properties: |
75 | | - - true |
76 | | - - severity: warning |
| 4 | +extends: |
| 5 | + - '@exadel/stylelint-config-esl' |
0 commit comments