Skip to content

Commit 641224a

Browse files
committed
fix: reorder and adjust rule definitions for Stylelint
1 parent f40522a commit 641224a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

stylelint.config.mjs

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/** @type {import('stylelint').Config} */
32
export default {
43
'extends': 'stylelint-config-standard',
@@ -14,7 +13,7 @@ export default {
1413
'**/*.js',
1514
'**/*.ts',
1615
'public/**/*.css',
17-
'node_modules/**/*.css'
16+
'node_modules/**/*.css',
1817
],
1918
'rules': {
2019
'no-duplicate-selectors': true,
@@ -38,15 +37,20 @@ export default {
3837
'font-weight-notation': 'numeric',
3938
'font-family-name-quotes': 'always-where-recommended',
4039
'comment-whitespace-inside': 'always',
41-
'at-rule-no-vendor-prefix': true,
42-
'rule-empty-line-before': [
40+
'comment-empty-line-before': [
4341
'always', {
4442
'except': [
45-
'after-single-line-comment',
4643
'first-nested'
4744
]
4845
}
4946
],
47+
'at-rule-no-vendor-prefix': true,
48+
'rule-empty-line-before': ['always', {
49+
'except': [
50+
'after-single-line-comment',
51+
'first-nested'
52+
]
53+
}],
5054
'selector-pseudo-element-colon-notation': 'double',
5155
'selector-no-vendor-prefix': true,
5256
'media-feature-name-no-vendor-prefix': true,
@@ -67,6 +71,8 @@ export default {
6771
'no-descending-specificity': null,
6872
'shorthand-property-no-redundant-values': null,
6973
'declaration-block-no-redundant-longhand-properties': null,
70-
'color-function-notation': 'modern'
74+
'color-function-notation': 'modern',
75+
'at-rule-no-deprecated': null,
76+
'no-invalid-position-at-import-rule': null,
7177
}
7278
}

0 commit comments

Comments
 (0)