| name | linting |
| description | Load this skill when configuring or running ESLint, Prettier, svelte-check, or tsc in a SvelteKit project. Auto-load whenever eslint.config.js, .prettierrc, or tsconfig.json is created or modified, or when lint errors are being diagnosed or resolved.
|
Linting and Quality Checks
All four checks must pass before a PR is opened:
bun run lint
bun run format:check
bun run check
bun run typecheck
svelte-check is not optional — catches prop type mismatches, missing required props, and a11y warnings that ESLint cannot see.
ESLint Configuration
import ts from '@typescript-eslint/eslint-plugin';
import svelte from 'eslint-plugin-svelte';
export default [
...ts.configs['recommended-type-checked'],
...svelte.configs['flat/recommended'],
{
rules: {
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
},
},
];
Prettier Configuration
{
"semi": true,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "all",
"plugins": ["prettier-plugin-svelte"]
}