Framework - Svelte
Lint Svelte components through a Nova-owned compatibility layer.
Why Use This Preset?
- Selects Svelte's recommended correctness rules without exposing its upstream config structure to consumers.
- Parses TypeScript inside
.sveltecomponents through Nova's installed TypeScript parser. - Ignores generated
.svelte-kitoutput. - Composes after Nova's required ignore, code-style, and language layers while preserving later consumer overrides.
Usage
eslint.config.mts
import {
dxCodeStyle,
dxIgnore,
fwSvelte,
langJavascript,
langTypescript,
runtimeBrowser,
toolVite,
} from '@cbnventures/nova/presets/eslint';
import { novaRules } from '@cbnventures/nova/rules/eslint';
export default [
...dxIgnore,
...dxCodeStyle,
...langJavascript,
...langTypescript,
...runtimeBrowser,
...toolVite,
...fwSvelte,
...novaRules,
];
Related
- Pair it with the matching Framework - Svelte TSConfig preset.
- Select it automatically with the Vite scaffold and
--framework svelte. - Review the layering order in ESLint Best Practices.