Skip to content

Commit

Permalink
fix: add missing types entry in package.json (#227)
Browse files Browse the repository at this point in the history
This change addresses an issue where VSCode (1.9X) could not locate the
TypeScript declaration file, resulting in a "Cannot find module
"eslint-plugin-oxlint" ts(2307)" error. Adding `"types":
"./dist/index.d.ts"` to `package.json` ensures that TypeScript
definitions are correctly referenced, enhancing editor support and
avoiding import errors in TypeScript projects.
  • Loading branch information
cheezone authored Nov 5, 2024
1 parent e7d1ff5 commit 03ce789
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.11.0",
"description": "Turn off all rules already supported by oxlint",
"type": "module",
"types": "./dist/index.d.ts",
"packageManager": "pnpm@9.12.3",
"exports": {
".": {
Expand Down

0 comments on commit 03ce789

Please sign in to comment.