chore: Add Prettier, EditorConfig and its checker config

This commit is contained in:
pan93412
2022-11-20 13:25:58 +08:00
parent 64434845a9
commit 39dad22ac1
3 changed files with 31 additions and 0 deletions

3
.ecrc.json Normal file
View File

@@ -0,0 +1,3 @@
{
"Exclude": ["Cargo\\.lock$"]
}

24
.editorconfig Normal file
View File

@@ -0,0 +1,24 @@
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# Use 4 spaces for Python, Rust and Bash files
[*.{py,rs,sh,md}]
indent_size = 4
# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab
[*.bat]
indent_size = 2
[*.md]
trim_trailing_whitespace = false

4
.prettierignore Normal file
View File

@@ -0,0 +1,4 @@
target
node_modules
dist/**/*
!dist/twitter.css