-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathstylelint.config.mjs
58 lines (57 loc) · 1.79 KB
/
stylelint.config.mjs
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
/** @type {import('stylelint').Config} */
export default {
extends: ['stylelint-config-standard', 'stylelint-config-clean-order'],
plugins: ['stylelint-prettier'],
rules: {
'prettier/prettier': true,
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind', 'apply', 'layer', 'config', 'variants', 'responsive', 'screen'],
},
],
'function-no-unknown': [
true,
{
ignoreFunctions: ['theme'],
},
],
'color-no-invalid-hex': true,
'value-keyword-case': [
'lower',
{
camelCaseSvgKeywords: true,
},
],
'annotation-no-unknown': true,
'block-no-empty': true,
'custom-property-no-missing-var-function': true,
'declaration-block-no-duplicate-custom-properties': true,
'declaration-block-no-duplicate-properties': true,
'declaration-block-no-shorthand-property-overrides': true,
'function-calc-no-unspaced-operator': true,
'function-linear-gradient-no-nonstandard-direction': true,
'keyframe-declaration-no-important': true,
'named-grid-areas-no-invalid': true,
'no-descending-specificity': true,
'no-duplicate-at-import-rules': true,
'no-duplicate-selectors': true,
'no-empty-source': true,
'no-unknown-animations': true,
'no-invalid-double-slash-comments': true,
'no-invalid-position-at-import-rule': true,
'no-irregular-whitespace': true,
'property-no-unknown': true,
'string-no-newline': true,
'selector-class-pattern': [
'^[a-z][a-zA-Z0-9]+$',
{
message: (selector) => `Expected class selector "${selector}" to be lowerCamelCase`,
},
],
'selector-type-no-unknown': true,
'selector-pseudo-class-no-unknown': true,
'selector-pseudo-element-no-unknown': true,
'unit-no-unknown': true,
},
};