chore: update code style config

This commit is contained in:
Cotes Chung 2023-03-06 08:48:52 +08:00
parent 968c13ec7d
commit 002f02533d
No known key found for this signature in database
GPG Key ID: 0D9E54843167A808
4 changed files with 19 additions and 3 deletions

5
.browserslistrc Normal file
View File

@ -0,0 +1,5 @@
# https://github.com/browserslist/browserslist#browserslistrc
last 2 versions
> 0.2%
not dead

View File

@ -9,8 +9,11 @@ trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true
[*.js]
indent_size = 4
[*.{js,css,scss}]
quote_type = single
[*.{yml,yaml}]
quote_type = double
[*.md]
trim_trailing_whitespace = false

3
.prettierrc Normal file
View File

@ -0,0 +1,3 @@
{
"trailingComma": "none"
}

View File

@ -11,6 +11,11 @@
"alpha-value-notation": "number",
"selector-not-notation": "simple",
"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"] }
]
}
}