Eslint fails to parse and red-highlights optional chaining (?.) and nullish coalescing (??) operators
Nullish coalescing operator is natively supported starting from eslint>=7.5.0. The easiest is set ES2020 in your package.json: { “eslintConfig”: { “parserOptions”: { “ecmaVersion”: 2020 } } }