diff --git a/.github/workflows/format-command.yml b/.github/workflows/format-command.yml index d1235234..f33478f5 100644 --- a/.github/workflows/format-command.yml +++ b/.github/workflows/format-command.yml @@ -51,7 +51,7 @@ jobs: node-version: "20" - name: Run Prettier - run: npx prettier --write "frontend/**/*.{html,css,js}" "scripts/**/*.js" "server.js" + run: npx prettier --write . - name: Commit and push changes uses: stefanzweifel/git-auto-commit-action@v5 diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..d8b83df9 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +package-lock.json diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 94c0b5b9..ce8c3d95 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -65,7 +65,7 @@ We use Prettier to enforce consistent code style across the project. Our automat Before submitting your Pull Request, please run the following command in the root of the repository to automatically format all your changes: ```bash -npx prettier --write "frontend/**/*.{html,css,js}" "scripts/**/*.js" "server.js" +npx prettier --write . ``` ### Frontend Changes