795 B
795 B
Linting
Command
- Run
pnpm lint(Prettier check + ESLint) before finishing any work. - If
pnpm lintreports errors, fix them and re-run until clean. - Never leave the repo in a state where
pnpm lintfails.
ESLint
- The flat config in
eslint.config.jsis the source of truth for enabled rules. Read it before making lint-related assumptions. .sveltefiles are handled byeslint-plugin-sveltewith the TypeScript parser.eslint.config.jsrespects.gitignore— don't lintbuild/,.svelte-kit/, ornode_modules/.- Prefer fixing the root cause over suppressing: avoid
eslint-disablecomments unless truly necessary, and never disable an entire file. - Run
pnpm lintfor the whole project after edits that touch Svelte, TypeScript, or configuration files.