-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathstylelint.config.mjs
More file actions
30 lines (30 loc) · 854 Bytes
/
stylelint.config.mjs
File metadata and controls
30 lines (30 loc) · 854 Bytes
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
/**
* @see https://stylelint.io/user-guide/configure
* @type {import('stylelint').Config}
*/
export default {
ignoreFiles: ["**/.*", "**/dist"],
extends: ["stylelint-config-recommended-scss"],
rules: {
"no-duplicate-selectors": [true, { severity: "warning" }],
"no-descending-specificity": [true, { severity: "warning" }],
"rule-empty-line-before": [
"always",
{
except: ["first-nested"],
ignore: ["after-comment"],
},
],
"at-rule-empty-line-before": [
"always",
{
except: ["first-nested", "after-same-name"],
ignore: ["after-comment", "blockless-after-blockless"],
ignoreAtRules: ["if", "else"],
},
],
// SCSS
"scss/operator-no-newline-after": [true, { severity: "warning" }],
"scss/at-extend-no-missing-placeholder": null,
},
};