mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
* Replace locale presubmit hook with Github action * nit * Make sure electronAPI is defined on window object * Set correct env var
15 lines
310 B
JavaScript
15 lines
310 B
JavaScript
export default {
|
|
'./**/*.js': (stagedFiles) => formatFiles(stagedFiles),
|
|
|
|
'./**/*.{ts,tsx,vue}': (stagedFiles) => [
|
|
...formatFiles(stagedFiles),
|
|
'vue-tsc --noEmit',
|
|
'tsc --noEmit',
|
|
'tsc-strict'
|
|
]
|
|
}
|
|
|
|
function formatFiles(fileNames) {
|
|
return [`prettier --write ${fileNames.join(' ')}`]
|
|
}
|