feat: add prettier to template

This commit is contained in:
林一二 2021-09-08 21:44:46 +08:00
parent 1070e7840b
commit 3e7a68ebd5
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,29 @@
root = true
[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.scss]
indent_size = 2
[*.js]
indent_size = 2
[*.jsx]
indent_size = 2
[*.ts]
indent_size = 2
[*.tsx]
indent_size = 2
[*.vue]
indent_size = 2
[Makefile]
indent_style = tab

View file

@ -0,0 +1,13 @@
module.exports = {
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
printWidth: 160,
arrowParens: 'always',
jsxBracketSameLine: true,
jsxSingleQuote: false,
quoteProps: 'as-needed',
bracketSpacing: true,
useTabs: false,
};