-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.cjs
45 lines (45 loc) · 1.03 KB
/
.stylelintrc.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
module.exports = {
extends: 'stylelint-config-standard',
overrides: [
{
files: ['**/*.{js,jsx}'],
customSyntax: '@stylelint/postcss-css-in-js',
rules: {
'at-rule-no-unknown': null
}
}
],
plugins: [
'stylelint-declaration-use-variable',
'stylelint-order'
],
rules: {
'color-function-notation': null,
'custom-property-pattern': /[\w-_]+/,
'no-empty-source': null,
'no-invalid-position-at-import-rule': null,
'order/order': [
'custom-properties',
'declarations'
],
'order/properties-alphabetical-order': true,
'sh-waqar/declaration-use-variable': [
'border-radius',
'color',
'font-family',
'font-size',
'font-weight',
'line-height',
'padding',
{
ignoreValues: ['inherit', 'transparent']
}
],
'selector-class-pattern': [
'^[a-z]([-]?[a-zA-Z0-9]+)*(__[a-z0-9]([-]?[a-zA-Z0-9]+)*)?(--[a-z0-9]([-]?[a-zA-Z0-9]+)*)?$',
{
resolveNestedSelectors: true
}
]
}
}