Closed as not planned
Closed as not planned
Description
Upgrading from version 3.8.3 to 4.3.4 and I am getting errors that there are pretty much no exports availaboe from @uidotdev/usehooks.
The breaking change seems to be with version 3.9.0, when there was a migration between resolvers.
Here is my tsconfig (if that is helpful):
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}
And here is the relevant part of my eslint config:
import importPlugin from "eslint-plugin-import";
...
{
...
importPlugin.flatConfigs.recommended,
{
rules: {
"import/first": "error",
"import/no-amd": "error",
"import/no-anonymous-default-export": "error",
},
settings: {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"],
},
"import/resolver": {
typescript: {
alwaysTryTypes: true,
project: "./tsconfig.json"
},
},
},
},
...
}