Skip to content

Commit b43a3d0

Browse files
committed
Order keys by my config
1 parent 4575c8d commit b43a3d0

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

index.js

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,51 @@ let propertyGroups = require('stylelint-config-recess-order/groups')
22

33
module.exports = {
44
extends: ['stylelint-config-standard'],
5+
overrides: [
6+
{
7+
files: ['**/*.sss'],
8+
rules: {
9+
'block-closing-brace-newline-before': null,
10+
'block-opening-brace-space-before': null,
11+
'custom-property-empty-line-before': null,
12+
'declaration-block-trailing-semicolon': null,
13+
'declaration-colon-newline-after': null
14+
}
15+
}
16+
],
517
plugins: ['stylelint-gamut', 'stylelint-order'],
618
rules: {
7-
'declaration-property-value-disallowed-list': {},
8-
'keyframe-block-no-duplicate-selectors': true,
9-
'selector-pseudo-class-no-unknown': [
19+
'alpha-value-notation': 'number',
20+
'at-rule-no-unknown': [
1021
true,
1122
{
12-
ignorePseudoClasses: ['global']
23+
ignoreAtRules: ['define-mixin', 'mixin']
1324
}
1425
],
15-
'gamut/color-no-out-gamut-range': true,
16-
'property-no-vendor-prefix': null,
17-
'function-disallowed-list': ['rgba', 'hsla'],
1826
'color-function-notation': 'modern',
19-
'no-irregular-whitespace': null,
27+
'color-no-hex': true,
28+
'declaration-property-value-disallowed-list': {},
29+
'function-disallowed-list': ['rgba', 'hsla'],
30+
'function-url-quotes': null,
31+
'gamut/color-no-out-gamut-range': true,
32+
'hue-degree-notation': 'number',
33+
'keyframe-block-no-duplicate-selectors': true,
2034
'keyframes-name-pattern': [
2135
'^--([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
2236
{
2337
message: name => `Expected keyframe name ${name} to be --kebab-case`
2438
}
2539
],
40+
'lightness-notation': 'number',
41+
'no-irregular-whitespace': null,
2642
'order/properties-order': [propertyGroups.default, { severity: 'warning' }],
43+
'property-no-vendor-prefix': null,
2744
'selector-class-pattern': null,
28-
'alpha-value-notation': 'number',
29-
'function-url-quotes': null,
30-
'hue-degree-notation': 'number',
31-
'lightness-notation': 'number',
32-
'at-rule-no-unknown': [
45+
'selector-pseudo-class-no-unknown': [
3346
true,
3447
{
35-
ignoreAtRules: ['define-mixin', 'mixin']
36-
}
37-
],
38-
'color-no-hex': true
39-
},
40-
overrides: [
41-
{
42-
files: ['**/*.sss'],
43-
rules: {
44-
'declaration-block-trailing-semicolon': null,
45-
'block-closing-brace-newline-before': null,
46-
'custom-property-empty-line-before': null,
47-
'block-opening-brace-space-before': null,
48-
'declaration-colon-newline-after': null
48+
ignorePseudoClasses: ['global']
4949
}
50-
}
51-
]
50+
]
51+
}
5252
}

0 commit comments

Comments
 (0)