miherlosev / eslint-plugin-testcafe

MIT License
15 stars 7 forks source link

'process' is not defined #6

Closed danwenzel closed 4 years ago

danwenzel commented 4 years ago

If you try to access an environment variable using process.env (as instructed by the testcafe docs), eslint throws 'process' is not defined.

I believe we need to add node: true to the env config:

env: {
  node: true
},
miherlosev commented 4 years ago

Hi @danwenzel

Environment option of the eslint tool is a basic option. It should not be set-up in the plugin. To fix this problem, specify the env option in the .eslint configuration file.

danwenzel commented 4 years ago

Ah, that makes sense. I was thinking we could set the env automatically for anyone using the plugin, but I see now that that's not the eslint convention. Thanks!