You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disabling plugin:n/recommended removes the above mentioned eslint error, but it brings back another error about instance class fields, which is part of ES2022. This feature is supported by Node v16, but I can't specify "ecmaVersion": 2022 because Node v16 does not support it fully. This was my motivation for using eslint-plugin-n.
The text was updated successfully, but these errors were encountered:
anantakrishna
changed the title
Eslint can't recognise nnullish coalescing operator with plugin:n/recommended
Eslint can't recognise nullish coalescing operator with plugin:n/recommendedDec 7, 2022
"eslint": "8.24.0"
"eslint-plugin-n": "15.6.0"
.eslintrc.yml
:package.json
:VSCode shows the following error for nullish coalescing operator:
According to node.green, this operator is supported in Node v16: https://node.green/#ES2020-features--nullish-coalescing-operator-----
Running eslint with
--print-config
shows:Perhaps, this is the cause. But why is it 2019?
Disabling
plugin:n/recommended
removes the above mentioned eslint error, but it brings back another error about instance class fields, which is part of ES2022. This feature is supported by Node v16, but I can't specify"ecmaVersion": 2022
because Node v16 does not support it fully. This was my motivation for usingeslint-plugin-n
.The text was updated successfully, but these errors were encountered: