Skip to content

Commit 610c75b

Browse files
chore: add configuration file .editorconfig (doocs#3336)
1 parent bd9def9 commit 610c75b

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

.editorconfig

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# REF: https://spec.editorconfig.org/#supported-pairs
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
# tab_width = 4
9+
# end_of_line = lf
10+
charset = utf-8
11+
# spelling_language = en-US
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true
14+
15+
[*.{md}]
16+
trim_trailing_whitespace = false
17+
18+
[*.{go}]
19+
indent_style = tab
20+
21+
[*.{yml,yaml}]
22+
indent_size = 2

.husky/commit-msg

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
npx --no -- commitlint --edit $1
1+
#!/bin/sh
2+
3+
npx --no -- commitlint --edit $1

.husky/pre-commit

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
npx lint-staged --allow-empty $1
1+
#!/bin/sh
2+
3+
npx lint-staged --allow-empty $1

0 commit comments

Comments
 (0)