Skip to content

Commit 00b2942

Browse files
authored
fix: eslint import/no-unresolved issue (#27)
Because of the missing 'main' key the eslint-plugin-import:resolver:node wasn't able to resolve the package as a directory thus throwing import/unresolved error/warning
1 parent 46146a9 commit 00b2942

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
"funding": "https://jaywcjlove.github.io/#/sponsor",
77
"license": "MIT",
88
"sideEffects": false,
9+
"main": "./lib/index.js",
910
"type": "module",
10-
"types": "./lib/index.d.ts",
11+
"types": "./lib/index.d.ts",
1112
"exports": "./lib/index.js",
1213
"scripts": {
1314
"prepare": "husky install",

0 commit comments

Comments
 (0)