prettier update
This commit is contained in:
parent
12fa15242c
commit
f03b61e5c5
4 changed files with 14 additions and 8 deletions
4
.github/workflows/cider-chores.yml
vendored
4
.github/workflows/cider-chores.yml
vendored
|
@ -61,9 +61,7 @@ jobs:
|
|||
ref: ${{ github.head_ref }}
|
||||
|
||||
- name: Prettify code
|
||||
uses: creyD/prettier_action@v4.2
|
||||
with:
|
||||
prettier_options: --write src/**/*.{js,json,ts,css,less}
|
||||
run: npm run format:write
|
||||
|
||||
- name: Commit Prettier Code
|
||||
uses: stefanzweifel/git-auto-commit-action@v4.14.1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
src/renderer/apple-hls*
|
||||
src/renderer/*hls*.js
|
||||
build/*
|
||||
src/renderer/lib/*
|
||||
*.min.*
|
||||
|
|
12
.prettierrc
12
.prettierrc
|
@ -1,5 +1,13 @@
|
|||
{
|
||||
"printWidth": 300,
|
||||
"printWidth": 600,
|
||||
"singleAttributePerLine": true,
|
||||
"bracketSameLine": true
|
||||
"bracketSameLine": true,
|
||||
"overrides": [
|
||||
{
|
||||
"files": "src/renderer/main/**/*.js",
|
||||
"options": {
|
||||
"bracketSameLine": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -37,8 +37,8 @@
|
|||
"msft": "npm run build && electron-builder -c msft-package.json",
|
||||
"mstest": "npm run build && electron-builder -c msft-test.json",
|
||||
"postinstall": "electron-builder install-app-deps",
|
||||
"format:check": "prettier --check \"src/**/*.{js,json,ts,css,less}\"",
|
||||
"format:write": "prettier --write \"src/**/*.{js,json,ts,css,less}\""
|
||||
"format:check": "npx prettier --check \"src/**/*.{js,json,ts,less}\"",
|
||||
"format:write": "npx prettier --write \"src/**/*.{js,json,ts,less}\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@sentry/electron": "^4.0.2",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue