Hello
I have a silly problem with XO-linter on Atom
I use it for lint react-redux app and I have a warning
window is not defined.... while in my package.json
I add
"env": {
"browser": true,
"node": true
}
but still... any idea ?
same problem (same cause) with document
"devDependencies": {
"eslint": "^3.19.0",
"eslint-config-xo-react": "^0.11.1",
"eslint-plugin-react": "^6.10.3",
"xo": "^0.18.1"
},
"xo": {
"extends": "xo-react",
"space": 2,
"env": {
"browser": true,
"node": true
}
}
env should be an array, not an object.
"env" : [
"browser",
"node"
]
Sorry for this ...
Most helpful comment
envshould be an array, not an object.