I have lots of error error 'x' is not defined no-undef after upgrade to typescript 4.4.2 from typescript 3.8.2. one of example is error 'JSX' is not defined no-undef and I take a deeper look, most of is from declarations.d.ts how can I solve it?
"typescript": "4.4.2"
"@typescript-eslint/eslint-plugin": "4.31.0",
"@typescript-eslint/parser": "4.31.0",