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.
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"
topackage.json
ensures that TypeScript definitions are correctly referenced, enhancing editor support and avoiding import errors in TypeScript projects.