Skip to content

Commit 002f025

Browse files
committed
chore: update code style config
1 parent 968c13e commit 002f025

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

.browserslistrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# https://github.com/browserslist/browserslist#browserslistrc
2+
3+
last 2 versions
4+
> 0.2%
5+
not dead

.editorconfig

+5-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ trim_trailing_whitespace = true
99
end_of_line = lf
1010
insert_final_newline = true
1111

12-
[*.js]
13-
indent_size = 4
12+
[*.{js,css,scss}]
13+
quote_type = single
14+
15+
[*.{yml,yaml}]
16+
quote_type = double
1417

1518
[*.md]
1619
trim_trailing_whitespace = false

.prettierrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"trailingComma": "none"
3+
}

.stylelintrc.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
"alpha-value-notation": "number",
1212
"selector-not-notation": "simple",
1313
"color-hex-length": "long",
14-
"declaration-block-single-line-max-declarations": 3
14+
"declaration-block-single-line-max-declarations": 3,
15+
"scss/operator-no-newline-after": null,
16+
"rule-empty-line-before": [
17+
"always",
18+
{ "ignore": ["after-comment", "first-nested", "inside-block"] }
19+
]
1520
}
1621
}

0 commit comments

Comments
 (0)