mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-03-02 03:51:03 -08:00
feat: add prettier to template
This commit is contained in:
parent
1070e7840b
commit
3e7a68ebd5
2 changed files with 42 additions and 0 deletions
29
template/wiki/.editorconfig
Normal file
29
template/wiki/.editorconfig
Normal 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
|
||||
13
template/wiki/.prettierrc.js
Normal file
13
template/wiki/.prettierrc.js
Normal 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,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue