Expand use of prettier to all tracked files (#17311)

This commit is contained in:
Steve Repsher
2023-07-18 11:16:33 -04:00
committed by GitHub
parent 493f1d1b50
commit c71fd055a4
28 changed files with 258 additions and 215 deletions

View File

@ -1,6 +1,6 @@
export default {
"*.?(c|m){js,ts}": ["eslint --fix", "prettier --write"],
"!(/translations)*.{json,css,md,html}": "prettier --write",
"*.{json,css,md,markdown,html,y?aml}": "prettier --write",
"translations/*/*.json": (files) =>
'printf "%s\n" "Translation files should not be added or modified here. Instead, make the necessary modifications in src/translations/en.json. Other languages are managed externally. Please see https://developers.home-assistant.io/docs/translations/ for details." ' +
files.join(" ") +