Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add global var to eslint config

Open
#43 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
35/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
eslint, javascript
Domain
tooling

Research direction

Update the global settings in .eslintrc for the WebAssembly global reported by hello-world/hello-world.spec.js. Start by running yarn lint to reproduce the three no-undef errors, then verify that yarn lint completes without those errors.

Written by the indexing model from the issue text.

Description

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
  },
Dominant language
JavaScript
Stars
14
Forks
23
Avg merge
1d 21h
Merged PRs (30d)
2

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from exercism/wasm

All issues in exercism/wasm

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.