For me it's due to incompatibility between my config file and ESlint version as newer ESlint by default uses "flat config". Setting
"eslint.useFlatConfig": false,
in the settings.json fixed it for me