Skip to content

Commit

Permalink
fix: lint and types
Browse files Browse the repository at this point in the history
  • Loading branch information
kawikabader committed Jan 13, 2025
1 parent f38001d commit cecc808
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
12 changes: 5 additions & 7 deletions packages/gasket-plugin-typescript/lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import type { CreateContext, CreatePrompt } from 'create-gasket-app';

declare module '@gasket/plugin-typescript' {
export const name = '@gasket/plugin-typescript';
export const hooks = {};
}

/* Externalize TS prompts for preset */
export async function promptTypescript(
context: CreateContext,
prompt: CreatePrompt
): Promise<undefined>
declare module 'create-gasket-app' {
export interface CreateContext {
typescript: boolean;
}
}
2 changes: 1 addition & 1 deletion packages/gasket-plugin-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"overrides": [
{
"files": [
"*.ts"
"lib/*.ts"
],
"extends": [
"godaddy-typescript"
Expand Down
6 changes: 2 additions & 4 deletions packages/gasket-plugin-typescript/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
"@types/node"
]
},
"exclude": [
"test",
"coverage",
"generator",
"include": [
"lib"
]
}

0 comments on commit cecc808

Please sign in to comment.