generated from efiand/vue3-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.cjs
59 lines (59 loc) · 1.45 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: ["stylelint-config-standard", "stylelint-order-htmlacademy"],
plugins: ["stylelint-codeguide"],
processors: ["stylelint-processor-html"],
rules: {
"alpha-value-notation": "number",
"at-rule-no-unknown": [
true,
{
ignoreAtRules: [
"content",
"each",
"forward",
"include",
"mixin",
"use",
],
},
],
"codeguide/color-hex-case": "lower",
"codeguide/number-leading-zero": "always",
"codeguide/number-no-trailing-zeros": true,
"color-function-notation": "legacy",
"color-hex-length": "long",
"font-family-name-quotes": "always-unless-keyword",
"media-feature-range-notation": "prefix",
"selector-class-pattern": [
"^(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)*(?:[.+])?$",
{
resolveNestedSelectors: true,
message: function expected(selectorValue) {
return `Expected class selector "${selectorValue}" to match BEM CSS pattern https://en.bem.info/methodology/css. Selector validation tool: https://regexr.com/3apms`;
},
},
],
"selector-pseudo-class-no-unknown": [
true,
{
ignorePseudoClasses: ["deep"],
},
],
"value-keyword-case": [
"lower",
{
camelCaseSvgKeywords: true,
},
],
},
overrides: [
{
files: ["**/*.scss"],
customSyntax: "postcss-scss",
},
{
files: ["**/*.vue"],
customSyntax: "postcss-html",
},
],
};