This repository was archived by the owner on Nov 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
75 lines (73 loc) · 2.36 KB
/
Copy pathindex.js
File metadata and controls
75 lines (73 loc) · 2.36 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import declarations from './declarations.js';
import propertyGroups from './groups.js';
const config = {
extends: ['stylelint-config-standard', 'stylelint-config-recommended-vue'],
plugins: [
'@stylistic/stylelint-plugin',
'stylelint-order',
'stylelint-use-logical-spec',
'stylelint-high-performance-animation',
],
ignoreFiles: ['*.min.css', 'wwwroot/css/*.css'],
rules: {
'at-rule-empty-line-before': [
'always',
{
except: ['blockless-after-same-name-blockless', 'first-nested'],
ignore: ['after-comment'],
ignoreAtRules: ['else'],
},
],
'at-rule-no-unknown': null,
'color-no-hex': true,
'comment-empty-line-before': null,
'custom-media-pattern': null,
'custom-property-pattern': null,
'declaration-block-no-redundant-longhand-properties': [
true,
{
ignoreShorthands: ['grid-template', 'flex', 'flex-flow'],
},
],
'declaration-empty-line-before': 'never',
'font-weight-notation': [
'numeric',
{
ignore: ['relative'],
},
],
'function-no-unknown': null,
'import-notation': 'string',
'no-descending-specificity': null,
'no-duplicate-selectors': true,
'no-empty-source': [
true,
{
severity: 'warning',
},
],
'number-max-precision': null,
'selector-class-pattern': null,
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['global', 'deep'],
},
],
// Plugin rules
'liberty/use-logical-spec': ['always', { except: [/width/i, /height/i] }],
'@stylistic/block-closing-brace-newline-before': 'always',
'@stylistic/block-opening-brace-newline-after': 'always',
'@stylistic/declaration-block-semicolon-newline-after': 'always',
'order/order': declarations,
'order/properties-order': propertyGroups,
'plugin/no-low-performance-animation-properties': [
true,
{
ignore: 'paint-properties',
severity: 'warning',
},
],
},
};
export default config;