From f6dbb3a916fc120ffeffca09fb9a955e5eab61ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Barr=C3=A9?= Date: Sat, 14 Sep 2024 11:28:43 +0200 Subject: [PATCH] Add missing default export (fixes #50) --- CHANGELOG.md | 4 ++++ src/index.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a54299..aebe2cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +- Add default export to fix usage with jiti (fixes #50) + ## 0.4.11 - Ignore type exports (ex. `export type foo = string;`) (fixes #47) diff --git a/src/index.ts b/src/index.ts index ab94592..e352741 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,3 +3,5 @@ import { onlyExportComponents } from "./only-export-components.ts"; export const rules = { "only-export-components": onlyExportComponents, }; +// eslint-disable-next-line @arnaud-barre/no-default-export +export default { rules };