It's as simple as stated above: React 16.9.22 with TypeScript 3.8.2. It doesn't affect anything, just crowds my warning window form actually useful things.
In my tsconfig I have:
{
"compilerOptions": {
"esModuleInterop": true
}
}
But every file have the line import React from 'react';
I get the linting error:
.../node_modules/@types/react/index"' can only be default-imported using the 'esModuleInterop' flag
possibly relevant deps:
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.22.0",
"@typescript-eslint/parser": "^2.22.0",
"cross-env": "^5.2.0",
"eslint": "^6.6.0",
"eslint-config-react-app": "^4.0.1",
"eslint-plugin-flowtype": "^2.0.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.18.3",
"typescript": "^3.8.2"
},