Skip to content

Commit 88a5dbc

Browse files
authored
Add typescript definition (#40)
1 parent 7b2846a commit 88a5dbc

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

lib/index.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import type { ESLint, Linter } from "eslint";
2+
3+
declare const plugin: ESLint.Plugin & {
4+
configs: {
5+
recommended: ESLint.ConfigData;
6+
all: ESLint.ConfigData;
7+
"flat/recommended": Linter.Config;
8+
"flat/all": Linter.Config;
9+
};
10+
};
11+
12+
export = plugin;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"license": "MIT",
2222
"exports": "./lib/index.js",
2323
"main": "lib/index.js",
24+
"types": "lib/index.d.ts",
2425
"files": [
2526
"lib/",
2627
"CHANGELOG.md"

0 commit comments

Comments
 (0)