Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add global var to eslint config #43

Open
kaitmore opened this issue Mar 6, 2022 · 0 comments
Open

Add global var to eslint config #43

kaitmore opened this issue Mar 6, 2022 · 0 comments

Comments

@kaitmore
Copy link

kaitmore commented Mar 6, 2022

I saw some eslint warnings about undefined globals in the hello-world.spec.js file:

❯ yarn lint
yarn run v1.22.17
$ eslint .

/Users/kaitm/Exercism/wasm/hello-world/hello-world.spec.js
  12:24  error  'WebAssembly' is not defined  no-undef
  26:26  error  'WebAssembly' is not defined  no-undef
  27:31  error  'WebAssembly' is not defined  no-undef

Adding WebAssembly to eslint globals fixed it for me:

// .eslintrc
  "globals": {
    "WebAssembly": true
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant