add prettier config
This commit is contained in:
parent
45823642c3
commit
f2d6120a5f
1 changed files with 19 additions and 0 deletions
19
prettier.config.js
Normal file
19
prettier.config.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
/**
|
||||
* @see https://prettier.io/docs/configuration
|
||||
* @type {import("prettier").Config}
|
||||
*/
|
||||
const config = {
|
||||
trailingComma: "es5",
|
||||
useTabs: false,
|
||||
bracketSpacing: true,
|
||||
objectWrap: "preserve",
|
||||
tabWidth: 4,
|
||||
semi: false,
|
||||
singleQuote: true,
|
||||
bracketSameLine: true,
|
||||
arrowParens: "always",
|
||||
endOfLine: "crlf"
|
||||
}
|
||||
|
||||
module.exports = config
|
||||
Loading…
Reference in a new issue