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-
- name: Run prettier
run: |-
npx prettier --check "./**/*.js" ui
npm run prettier-check

View File

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

View File

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