Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / stylelint-config-proton / index.js
blobe2e1f70cdea5785a1b4239e7120771eb04868c3b
1 module.exports = {
2     extends: ['stylelint-config-standard-scss', 'stylelint-config-prettier-scss'],
3     rules: {
4         'color-no-invalid-hex': true,
5         'font-family-no-duplicate-names': true,
6         'font-family-no-missing-generic-family-keyword': true,
7         'function-calc-no-unspaced-operator': true,
8         'function-linear-gradient-no-nonstandard-direction': true,
9         'string-no-newline': true,
10         'unit-no-unknown': true,
11         'property-no-unknown': true,
12         'keyframe-declaration-no-important': true,
13         'declaration-block-no-duplicate-properties': [
14             true,
15             { ignore: ['consecutive-duplicates-with-different-values'] },
16         ],
17         'declaration-block-no-shorthand-property-overrides': true,
18         'block-no-empty': true,
19         'selector-pseudo-class-no-unknown': true,
20         'selector-pseudo-element-no-unknown': true,
21         'selector-type-no-unknown': true,
22         'selector-anb-no-unmatchable': null,
23         'media-feature-name-no-unknown': true,
24         'at-rule-no-unknown': [
25             true,
26             {
27                 ignoreAtRules: [
28                     'use',
29                     'forward',
30                     'import',
31                     'mixin',
32                     'include',
33                     'function',
34                     'extend',
35                     'at-root',
36                     'error',
37                     'warn',
38                     'debug',
39                     'if',
40                     'else',
41                     'each',
42                     'for',
43                     'while',
44                     'return',
45                 ],
46             },
47         ],
48         'comment-no-empty': true,
49         'no-descending-specificity': null,
50         'no-duplicate-at-import-rules': true,
51         'no-duplicate-selectors': true,
52         'no-empty-source': true,
53         'no-invalid-double-slash-comments': null,
55         'alpha-value-notation': 'number',
56         'hue-degree-notation': 'angle',
57         'color-function-notation': 'modern',
58         'color-named': ['always-where-possible', { ignore: ['inside-function'] }],
59         'color-no-hex': null,
60         'font-weight-notation': 'named-where-possible',
61         'function-url-no-scheme-relative': null,
62         'keyframes-name-pattern': null,
63         'number-max-precision': 3,
64         'time-min-milliseconds': null,
65         'shorthand-property-no-redundant-values': true,
66         'value-no-vendor-prefix': true,
67         'custom-property-pattern': null,
68         'property-no-vendor-prefix': true,
69         'selector-pseudo-element-colon-notation': 'double',
70         'selector-class-pattern': null,
71         'scss/at-extend-no-missing-placeholder': null,
72         'scss/no-global-function-names': null, // todo: reintroduce this later with sass migrate
74         'function-name-case': 'lower',
75         'function-url-quotes': 'never',
77         'liberty/use-logical-spec': 'always',
78     },
79     plugins: ['stylelint-use-logical-spec'],