Closed
Description
(First seen in #24)
It would appear that react/jsx-no-undef
isn't working properly (according to @yannickcr that's what I'm seeing here) while using babel-eslint. Here's the problems:
class RalphMacchio extends React.Component {
...blah blah
}
and...
React.render(<RalphMacchio />, document.getElementById('rm'));
Gives me:
src/app.jsx
41:14 error 'RalphMacchio' is not defined react/jsx-no-undef
41:14 error 'RalphMacchio' is not defined no-undef
Forgive me (and point me in the right direction) if this is unrelated. I'm trying to switch to ESLint to support my new ES6 projects. Here's my WIP .eslintrc:
{
"parser": "babel-eslint",
"env": {
"node": true,
"es6": true
},
"plugins": [
"react"
],
"settings": {
"ecmascript": 6
},
"ecmaFeatures": {
"jsx": true
},
"rules": {
"no-undef": 2,
"react/jsx-no-undef": 2,
"no-unused-vars": 2,
"react/jsx-uses-vars": 1,
"no-console": 1,
"eqeqeq": [2, "smart"],
"quotes": [2, "single"]
},
"globals": {
"document": true,
"window": true,
"_": true
}
}