Skip to content

Commit

Permalink
Add type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
jaap3 committed Dec 17, 2024
1 parent 96ce2d7 commit 8d806bf
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 0 deletions.
21 changes: 21 additions & 0 deletions configs/base.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
declare module '@leukeleu/eslint-config/configs/base' {
import { Linter } from 'eslint'

const eslintRecommended: Linter.Config
const typeScriptConfig: Linter.Config[]
const vue2Config: Linter.Config[]
const leukeleuVue3Overrides: Linter.Config
const vue3Config: Linter.Config[]
const leukeleuOverrides: Linter.Config
const prettierConfig: Linter.Config

export {
eslintRecommended,
typeScriptConfig,
vue2Config,
leukeleuVue3Overrides,
vue3Config,
leukeleuOverrides,
prettierConfig,
}
}
5 changes: 5 additions & 0 deletions configs/javascript.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module '@leukeleu/eslint-config/configs/javascript' {
import { Linter } from 'eslint'
const config: Linter.Config[]
export default config
}
5 changes: 5 additions & 0 deletions configs/nuxt3.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module '@leukeleu/eslint-config/configs/nuxt3' {
import { Linter } from 'eslint'
const config: Linter.Config[]
export default config
}
5 changes: 5 additions & 0 deletions configs/typescript.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module '@leukeleu/eslint-config/configs/typescript' {
import { Linter } from 'eslint'
const config: Linter.Config[]
export default config
}
5 changes: 5 additions & 0 deletions configs/vue2.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module '@leukeleu/eslint-config/configs/vue2' {
import { Linter } from 'eslint'
const config: Linter.Config[]
export default config
}
5 changes: 5 additions & 0 deletions configs/vue3.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module '@leukeleu/eslint-config/configs/vue3' {
import { Linter } from 'eslint'
const config: Linter.Config[]
export default config
}

0 comments on commit 8d806bf

Please sign in to comment.