Adjust prettier config

This commit is contained in:
cmdr2 2023-04-28 18:10:58 +05:30
parent 03fedfd0d5
commit 2e362d57eb
3 changed files with 5 additions and 8 deletions

View File

@ -19,4 +19,4 @@ jobs:
${{ runner.os }}-npm- ${{ runner.os }}-npm-
- name: Run prettier - name: Run prettier
run: |- run: |-
npx prettier --check "./**/*.js" ui npm run prettier-check

View File

@ -1,8 +1,4 @@
*.min.* *.min.*
*.py *.py
/* *.json
!/ui *.html
/ui/easydiffusion
/ui/hotfix
!/ui/plugins
!/ui/media

View File

@ -1,6 +1,7 @@
{ {
"scripts": { "scripts": {
"prettier": "prettier --write \"./**/*.js\"" "prettier-fix": "npx prettier --write ui/**",
"prettier-check": "npx prettier --check ui/**"
}, },
"devDependencies": { "devDependencies": {
"prettier": "^1.19.1" "prettier": "^1.19.1"