-
-
Notifications
You must be signed in to change notification settings - Fork 193
Open
Labels
false positiveSevere bug: quick-lint-js rejects valid codeSevere bug: quick-lint-js rejects valid code
Description
sveltekit projects have a app.d.ts file. i use it like this:
declare global {
interface NavLink {
type: 'nav',
title: string,
href: string,
}
interface SubmenuSeparator {
type: 'separator'
}
}
// ...
export {};However, the global types are not recognized and show:

tsconfig:
the "./.svelte-kit/tsconfig.json" is auto-generated / changes a lot, better to check a bare sveltekit starter project.
vegerot and groundbirdaircat
Metadata
Metadata
Assignees
Labels
false positiveSevere bug: quick-lint-js rejects valid codeSevere bug: quick-lint-js rejects valid code
{ "extends": "./.svelte-kit/tsconfig.json", "compilerOptions": { "allowJs": true, "checkJs": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, "skipLibCheck": true, "sourceMap": true, "strict": true, "target": "es2021" } // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias // // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes // from the referenced tsconfig.json - TypeScript does not merge them in }