Skip to content

Commit 618965c

Browse files
committed
Add plugin type declaration
Closes #2
1 parent 17bcca6 commit 618965c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{
22
"name": "eslint-plugin-react-you-might-not-need-an-effect",
3-
"version": "0.0.40",
3+
"version": "0.0.42",
44
"description": "ESLint rule to warn against unnecessary React useEffect hooks.",
55
"author": "Nick van Dyke",
66
"license": "MIT",
77
"type": "module",
88
"module": "./src/index.js",
99
"main": "./dist/index.cjs",
10+
"types": "./types/index.d.ts",
1011
"files": [
1112
"src",
13+
"types",
1214
"dist"
1315
],
1416
"exports": {

types/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import type { ESLint } from "eslint";
2+
3+
declare const plugin: ESLint.Plugin;
4+
export default plugin;

0 commit comments

Comments
 (0)