mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 22:37:32 +00:00
- Enables TypeScript strict mode, repo-wide - Prevents `tsc` from emitting files - Removes `typescript-strict-plugin` package - Removes redundant CI step
18 lines
385 B
JavaScript
18 lines
385 B
JavaScript
export default {
|
|
"*.css": stagedFiles => `prettier --write ${stagedFiles.join(" ")}`,
|
|
|
|
"*.js": stagedFiles => prettierAndEslint(stagedFiles),
|
|
|
|
"*.{ts,mts}": stagedFiles => [
|
|
...prettierAndEslint(stagedFiles),
|
|
"tsc",
|
|
],
|
|
}
|
|
|
|
function prettierAndEslint(fileNames) {
|
|
return [
|
|
`prettier --write ${fileNames.join(" ")}`,
|
|
`eslint --fix ${fileNames.join(" ")}`,
|
|
]
|
|
}
|