Skip to content

Commit

Permalink
comment out empty interfaces (#4077)
Browse files Browse the repository at this point in the history
* comment out empty interface in default

* add additional empty comment to not get collapsed

* add changeset

* Update packages/create-svelte/templates/skeleton/src/app.d.ts

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
  • Loading branch information
ignatiusmb and Rich-Harris authored Feb 23, 2022
1 parent 3d728d2 commit 74b0e56
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/great-seahorses-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

fix `@typescript-eslint/no-empty-interface` lint error when starting a new app with eslint
6 changes: 3 additions & 3 deletions packages/create-svelte/templates/default/src/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ declare namespace App {
userid: string;
}

interface Platform {}
// interface Platform {}

interface Session {}
// interface Session {}

interface Stuff {}
// interface Stuff {}
}
8 changes: 4 additions & 4 deletions packages/create-svelte/templates/skeleton/src/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
// See https://kit.svelte.dev/docs/types#the-app-namespace
// for information about these interfaces
declare namespace App {
interface Locals {}
// interface Locals {}

interface Platform {}
// interface Platform {}

interface Session {}
// interface Session {}

interface Stuff {}
// interface Stuff {}
}

0 comments on commit 74b0e56

Please sign in to comment.