Answer the question
In order to leave comments, you need to log in
Why doesn't ESLINT want to know about the spread operator?
Hello! Such a disaster. I use eslint in a react project. He does not want to accept any spread operator.
eslint -v: 4.9.0 Having
rustled the forums, I found a fix, but it did not help me:
.eslintrc:
"parser": "babel-eslint",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"spread": true,
......
"dependencies": {
"babel-eslint": "^8.0.3",
"babel-plugin-react-transform": "^3.0.0",
"babel-plugin-syntax-object-rest-spread": "^6.13.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
....
}
Answer the question
In order to leave comments, you need to log in
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question