Answer the question
In order to leave comments, you need to log in
How to make optional-chaining and eslint friends?
Babel accepted the entry normally when he installed the plug-in for the operator x.b?.func_C()
, but EsLint first wrote the unexpected token .
config if the lint looked briefly - so
...
extends: ['airbnb', 'plugin:prettier/recommended', 'prettier/react'],
env: {
browser: true,
commonjs: true,
es6: true,
jest: true,
node: true,
},
...
parser: 'babel-eslint'
no-unused-expressions
camelcase
Answer the question
In order to leave comments, you need to log in
ESLint, as far as I know, does not understand language features that currently have the "draft" status. For this there is https://github.com/babel/babel-eslint
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question