Skip to content

Commit

Permalink
feat: Add types
Browse files Browse the repository at this point in the history
  • Loading branch information
mskelton committed Oct 22, 2024
1 parent b4b8563 commit 3241810
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
11 changes: 11 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Linter, Rule } from "eslint"

declare const plugin: {
configs: {
recommended: Linter.Config
["flat/recommended"]: Linter.FlatConfig
}
rules: Record<string, Rule.RuleModule>
}

export default plugin
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@
},
"type": "module",
"exports": {
"import": "./dist/index.js",
"require": "./index.cjs"
".": {
"types": "./index.d.ts",
"import": "./dist/index.js",
"require": "./index.cjs"
}
},
"files": [
"dist",
"index.cjs"
"index.cjs",
"index.d.ts"
],
"peerDependencies": {
"eslint": ">=8"
Expand Down

0 comments on commit 3241810

Please sign in to comment.