The issue is tracked at WEB-57089, and it is fixed in 2022.2.2 preview build.
The issue is caused by the changes introduced in ESLint 8.23 (offending upstream commit: View on GitHub). Downgrading ESLint to 8.22.x or earlier (with npm install eslint@8.22.0 --save-exact
) should help.