In Atom Editor I installed the following plugins
It seems they don\'t recognize the JSX syntaxis.
I have
To get Eslint working nicely with React.js:
npm install eslint-plugin-react"plugins": ["react"] to your .eslintrc config file"ecmaFeatures": {"jsx": true} to your .eslintrc config fileHere is an example of a .eslintrc config file:
{
"env": {
"browser": true,
"node": true
},
"globals": {
"React": true
},
"ecmaFeatures": {
"jsx": true
},
"plugins": [
"react"
]
}
I am using Eslint v1.1.0 at the moment.
Side note:
I had to install both eslint and eslint-plugin-react as project dependencies (e.g., npm install eslint eslint-plugin-react --save-dev). Hopefully this helps.