fac19 / week5-EIJO

Recipes database app
https://cookvid-19.herokuapp.com/
0 stars 2 forks source link

ESLint environment #54

Open oliverjam opened 4 years ago

oliverjam commented 4 years ago

https://github.com/fac19/week5-EIJO/blob/e3d8afea9d6b375e67655a5b0a8c3be7ea589530/.eslintrc.js#L1-L5

@Chloeh24 I think this is why your ESLint was angry about all the Node globals (like require and module) and underlining them all. If you use the CLI to generate the config file for you you need to select "Node" when it asks "Where does your code run?".

You can manually add Node to the settings to fix this:

module.exports = { 
     "env": { 
         "browser": true, 
+        "node": true,
         "es6": true 
     }, 
// ...
}