mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 10:59:53 +00:00
* devex: Keep the presubmit from wiping the lint cache * devex: typescript for eslint config * devex: upgrade lint plugins and dedupe lockfile * lint: Fix autofixable rules with updated vue linter * lint: Remove default for required prop * lint: temporarily disable warnings for missing defaults * deps: Update vue-tsc * lint: use the config convenience utility, switch to using projectService * lint: Fix redundant eslint config blocks and misplaced parser * lint: Split up parsing options for typescript vs vue files
16 lines
373 B
JavaScript
16 lines
373 B
JavaScript
export default {
|
|
'./**/*.js': (stagedFiles) => formatAndEslint(stagedFiles),
|
|
|
|
'./**/*.{ts,tsx,vue,mts}': (stagedFiles) => [
|
|
...formatAndEslint(stagedFiles),
|
|
'pnpm typecheck'
|
|
]
|
|
}
|
|
|
|
function formatAndEslint(fileNames) {
|
|
return [
|
|
`pnpm exec eslint --cache --fix ${fileNames.join(' ')}`,
|
|
`pnpm exec prettier --cache --write ${fileNames.join(' ')}`
|
|
]
|
|
}
|