mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 22:37:32 +00:00
19 lines
412 B
JavaScript
19 lines
412 B
JavaScript
export default {
|
|
"*.css": stagedFiles => `prettier --write ${stagedFiles.join(" ")}`,
|
|
|
|
"*.js": stagedFiles => prettierAndEslint(stagedFiles),
|
|
|
|
"*.{ts,mts}": stagedFiles => [
|
|
...prettierAndEslint(stagedFiles),
|
|
"tsc --noEmit",
|
|
"tsc-strict",
|
|
],
|
|
}
|
|
|
|
function prettierAndEslint(fileNames) {
|
|
return [
|
|
`prettier --write ${fileNames.join(" ")}`,
|
|
`eslint --fix ${fileNames.join(" ")}`,
|
|
]
|
|
}
|