10 lines
531 B
JavaScript
10 lines
531 B
JavaScript
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." ' +
|
|
files.join(" ") +
|
|
" >&2 && exit 1",
|
|
"yarn.lock": () => "yarn dedupe",
|
|
};
|