UNPKG

903 BTypeScriptView Raw
1declare const tpl = "`\n\"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\",\n \"pre-push\": \"${\n (eslint || stylelint || prettier) && test\n ? 'npm run lint && npm run test'\n : (eslint || stylelint || prettier)\n ? 'npm run lint'\n : test\n ? 'npm run test'\n : ''}\",\n \"commit-msg\": \"npm run lint:commit\"\n }\n},\n\"lint-staged\": {\n ${eslint || prettier ? `\"src/**/*.{js,jsx,ts,tsx,vue}\": [\n ${eslint ? `\"${script_eslint_fix}\"${prettier ? ',' : ''}` : ''}\n ${prettier ? `\"${script_prettier_fix}\"` : ''}\n ]${stylelint || prettier ? ',' : ''}` : ''}\n ${stylelint || prettier ? `\"src/**/*.{css,scss,sass,less}\": [\n ${stylelint ? `\"${script_stylelint_fix}\"${prettier ? ',' : ''}` : ''}\n ${prettier ? `\"${script_prettier_fix}\"` : ''}\n ]` : ''}\n},\n`";
2export default tpl;