chore: update code style config
This commit is contained in:
parent
968c13ec7d
commit
002f02533d
4 changed files with 19 additions and 3 deletions
5
.browserslistrc
Normal file
5
.browserslistrc
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# https://github.com/browserslist/browserslist#browserslistrc
|
||||||
|
|
||||||
|
last 2 versions
|
||||||
|
> 0.2%
|
||||||
|
not dead
|
|
@ -9,8 +9,11 @@ trim_trailing_whitespace = true
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
[*.js]
|
[*.{js,css,scss}]
|
||||||
indent_size = 4
|
quote_type = single
|
||||||
|
|
||||||
|
[*.{yml,yaml}]
|
||||||
|
quote_type = double
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
|
3
.prettierrc
Normal file
3
.prettierrc
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"trailingComma": "none"
|
||||||
|
}
|
|
@ -11,6 +11,11 @@
|
||||||
"alpha-value-notation": "number",
|
"alpha-value-notation": "number",
|
||||||
"selector-not-notation": "simple",
|
"selector-not-notation": "simple",
|
||||||
"color-hex-length": "long",
|
"color-hex-length": "long",
|
||||||
"declaration-block-single-line-max-declarations": 3
|
"declaration-block-single-line-max-declarations": 3,
|
||||||
|
"scss/operator-no-newline-after": null,
|
||||||
|
"rule-empty-line-before": [
|
||||||
|
"always",
|
||||||
|
{ "ignore": ["after-comment", "first-nested", "inside-block"] }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue