Prettier and editor config setups (universal formatting)
This commit is contained in:
parent
d11c5e0989
commit
1b1d769c21
4 changed files with 17 additions and 1 deletions
12
.editorconfig
Normal file
12
.editorconfig
Normal file
|
@ -0,0 +1,12 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
3
.prettierignore
Normal file
3
.prettierignore
Normal file
|
@ -0,0 +1,3 @@
|
|||
src/renderer/apple-hls*
|
||||
build/*
|
||||
src/renderer/lib/*
|
1
.prettierrc
Normal file
1
.prettierrc
Normal file
|
@ -0,0 +1 @@
|
|||
bracketSameLine: true
|
|
@ -35,7 +35,7 @@
|
|||
"msft": "yarn build && electron-builder -c msft-package.json",
|
||||
"mstest": "yarn build && electron-builder -c msft-test.json",
|
||||
"postinstall": "electron-builder install-app-deps",
|
||||
"circle:script": "node resources/circle"
|
||||
"prettier": "npx prettier --write '**/*.{js,json,ts}'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@sentry/electron": "^3.0.7",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue