From 8d806bf9f07d5d50db8e18eb85926d796e255dce Mon Sep 17 00:00:00 2001 From: Jaap Roes Date: Tue, 17 Dec 2024 15:24:02 +0100 Subject: [PATCH] Add type definitions --- configs/base.d.ts | 21 +++++++++++++++++++++ configs/javascript.d.ts | 5 +++++ configs/nuxt3.d.ts | 5 +++++ configs/typescript.d.ts | 5 +++++ configs/vue2.d.ts | 5 +++++ configs/vue3.d.ts | 5 +++++ 6 files changed, 46 insertions(+) create mode 100644 configs/base.d.ts create mode 100644 configs/javascript.d.ts create mode 100644 configs/nuxt3.d.ts create mode 100644 configs/typescript.d.ts create mode 100644 configs/vue2.d.ts create mode 100644 configs/vue3.d.ts diff --git a/configs/base.d.ts b/configs/base.d.ts new file mode 100644 index 0000000..f133a7e --- /dev/null +++ b/configs/base.d.ts @@ -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, + } +} diff --git a/configs/javascript.d.ts b/configs/javascript.d.ts new file mode 100644 index 0000000..bad7491 --- /dev/null +++ b/configs/javascript.d.ts @@ -0,0 +1,5 @@ +declare module '@leukeleu/eslint-config/configs/javascript' { + import { Linter } from 'eslint' + const config: Linter.Config[] + export default config +} diff --git a/configs/nuxt3.d.ts b/configs/nuxt3.d.ts new file mode 100644 index 0000000..5162bf0 --- /dev/null +++ b/configs/nuxt3.d.ts @@ -0,0 +1,5 @@ +declare module '@leukeleu/eslint-config/configs/nuxt3' { + import { Linter } from 'eslint' + const config: Linter.Config[] + export default config +} diff --git a/configs/typescript.d.ts b/configs/typescript.d.ts new file mode 100644 index 0000000..4d8b1e2 --- /dev/null +++ b/configs/typescript.d.ts @@ -0,0 +1,5 @@ +declare module '@leukeleu/eslint-config/configs/typescript' { + import { Linter } from 'eslint' + const config: Linter.Config[] + export default config +} diff --git a/configs/vue2.d.ts b/configs/vue2.d.ts new file mode 100644 index 0000000..dd70886 --- /dev/null +++ b/configs/vue2.d.ts @@ -0,0 +1,5 @@ +declare module '@leukeleu/eslint-config/configs/vue2' { + import { Linter } from 'eslint' + const config: Linter.Config[] + export default config +} diff --git a/configs/vue3.d.ts b/configs/vue3.d.ts new file mode 100644 index 0000000..40b7b63 --- /dev/null +++ b/configs/vue3.d.ts @@ -0,0 +1,5 @@ +declare module '@leukeleu/eslint-config/configs/vue3' { + import { Linter } from 'eslint' + const config: Linter.Config[] + export default config +}