-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.stylelintrc.cjs
59 lines (59 loc) · 2.02 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
module.exports = {
extends: [
/*
The recommended shareable SCSS config for Stylelint. Extends both
the `stylelint-config-recommended` shared config and configures its
rules for SCSS. Bundles and configures the `stylelint-scss plugin`
pack and the `postcss-scss` custom syntax.
https://github.com/stylelint-scss/stylelint-config-standard-scss
*/
'stylelint-config-recommended-scss',
/*
Recommended shareable Vue config for Stylelint. Extends the
`stylelint-config-recommended` shared config and bundles
the `postcss-html` custom syntax and configures it.
https://github.com/ota-meshi/stylelint-config-recommended-vue
*/
'stylelint-config-recommended-vue',
/*
Turns off all CSS and SCSS rules that are unnecessary or might
conflict with Prettier.
https://github.com/prettier/stylelint-config-prettier-scss
*/
// 'stylelint-config-prettier-scss',
/*
Stylelint config for "rational" ordering of property declarations.
https://github.com/Allohamora/stylelint-config-rational-order
*/
'stylelint-config-rational-order-fix',
],
plugins: [
/*
Collection of SCSS specific linting rules for Stylelint.
https://github.com/stylelint-scss/stylelint-scss
*/
'stylelint-scss',
/*
Plugin pack of order-related linting rules for Stylelint.
https://github.com/hudochenkov/stylelint-order
*/
'stylelint-order',
],
rules: {
'color-hex-length': 'long',
'color-function-notation': 'legacy',
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': true,
'no-descending-specificity': null,
'function-no-unknown': null,
'scss/no-global-function-names': null,
'selector-class-pattern': null,
'scss/at-function-pattern': null,
'scss/comment-no-empty': null,
'shorthand-property-no-redundant-values': null,
'length-zero-no-unit': null,
'alpha-value-notation': null,
'font-family-name-quotes': 'always-unless-keyword',
'font-family-no-missing-generic-family-keyword': true,
},
}