Skip to content

Commit 4e95a1d

Browse files
pilikanJounQin
andauthored
fix: this package is commonjs, align its types correctly (#325)
Co-authored-by: JounQin <[email protected]>
1 parent 8911369 commit 4e95a1d

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.changeset/quiet-shoes-knock.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-config-prettier": patch
3+
---
4+
5+
fix: this package is `commonjs`, align its types correctly

flat.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
export * from "./index.js";
1+
import eslintConfigPrettier from "./index.js";
22

3-
export const name: "config-prettier";
3+
declare const eslintConfigPrettierFlat: typeof eslintConfigPrettier & {
4+
name: "config-prettier";
5+
};
6+
7+
export = eslintConfigPrettierFlat;

index.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
export const rules: Record<string, 0 | "off">;
1+
declare const eslintConfigPrettier: {
2+
rules: Record<string, 0 | "off">;
3+
};
4+
5+
export = eslintConfigPrettier;

0 commit comments

Comments
 (0)