Frontend: Restrict Prettier to CSS and JSON via .prettierignore

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2026-05-16 10:34:38 +02:00
parent 39216b2bd6
commit 11f30f7edc
2 changed files with 21 additions and 1 deletions

View file

@ -12,3 +12,13 @@ tests/upload-files/
*.html
*.md
.*
# JS / Vue / configs — ESLint owns formatting (see frontend/eslint.config.mjs).
# Prettier on these collapses intentional multi-line method chains and
# predicate lists; we deliberately moved them off Prettier's autofix path.
# Vue templates are formatted by eslint-plugin-vue's flat/recommended preset
# (vue/html-indent, vue/html-quotes, vue/max-attributes-per-line, etc.).
**/*.js
**/*.mjs
**/*.cjs
**/*.vue

View file

@ -8,4 +8,14 @@ tests/upload-files/
.var
*.html
*.md
.*
.*
# JS / Vue / configs — ESLint owns formatting (see eslint.config.mjs).
# Prettier on these collapses intentional multi-line method chains and
# predicate lists; we deliberately moved them off Prettier's autofix path.
# Vue templates are formatted by eslint-plugin-vue's flat/recommended preset
# (vue/html-indent, vue/html-quotes, vue/max-attributes-per-line, etc.).
**/*.js
**/*.mjs
**/*.cjs
**/*.vue