mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:41:09 +02:00
Add automatic svelte-check validation for staged Svelte files: - Create svelte-check-staged.sh that runs on affected web apps only - Create build-check-staged.sh for production build validation - Integrate svelte-check into pre-commit hook - Add optional pre-push hook for full build checks - Update lint-staged config to handle Svelte files separately
12 lines
419 B
JavaScript
12 lines
419 B
JavaScript
export default {
|
|
'*.{ts,tsx,js,jsx,mjs,cjs}': [
|
|
'eslint --fix --ignore-pattern "apps-archived/**"',
|
|
'prettier --config .prettierrc.json --write',
|
|
],
|
|
'*.{json,md,astro}': ['prettier --config .prettierrc.json --write'],
|
|
// Svelte files: format + check for a11y and Svelte 5 issues
|
|
'*.svelte': [
|
|
'prettier --config .prettierrc.json --write',
|
|
// svelte-check is run at project level via pre-commit hook
|
|
],
|
|
};
|