-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.js
33 lines (33 loc) · 1.11 KB
/
.stylelintrc.js
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
module.exports = {
extends: ["stylelint-config-standard", "stylelint-prettier/recommended"],
ignoreFiles: ["public/**", "build/**", "*.{tsx,ts,js,jsx}"],
defaultSeverity: "warning",
rules: {
indentation: null, // Work with prettier
"declaration-colon-newline-after": null,
},
overrides: [
{
files: ["**/*.module.*"],
rules: {
"selector-pseudo-class-no-unknown": [
true,
{
ignorePseudoClasses: ["global"],
},
],
"selector-class-pattern":
/(^([a-z][a-z0-9]*)(-[a-z0-9]+)*$)|(^[a-z][a-zA-Z0-9]+$)/,
},
},
{
files: ["**/*.scss"],
extends: ["stylelint-config-standard-scss", "stylelint-prettier/recommended"],
rules: {
"scss/dollar-variable-empty-line-before": null,
"scss/function-quote-no-quoted-strings-inside": null,
"scss/at-mixin-argumentless-call-parentheses": null,
},
},
],
}