Make module types explicit and convert some to ESM (#15964)

This commit is contained in:
Steve Repsher
2023-03-30 05:23:43 -04:00
committed by GitHub
parent fcc95825e3
commit 1f1898fa46
53 changed files with 188 additions and 188 deletions

View File

@@ -1,5 +1,5 @@
module.exports = {
"*.{js,ts}": ["prettier --write", "eslint --fix"],
export default {
"*.?(c|m){js,ts}": ["eslint --fix", "prettier --write"],
"!(/translations)*.{json,css,md,html}": "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." ' +