I have a problem with configuring ESlint: I have this code:
@connect((store) => {
return {
user: store.user.user,
userFetched: store.user.fetched,
tweets: store.tweets.tweets,
};
})
and I can't find a way to configure ESlint, so it does not throw an 'Unexpected token' for the '@connect'.
This is my '.eslintrc.json':
{
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"indent": [
1,
2
],
"linebreak-style": [
0,
"unix"
],
"quotes": [
1,
"double"
],
"semi": [
2,
"always"
]
}
}
Can someone help me with this problem? I am most certain that there is a plugin for that but I can't find one.
Thanks!