Add global var to eslint config
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from exercism/wasm
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Add learning modeOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
stac-utils/stac-fields#42 ·
-
[sec-check] SVG remote-reference gate misses src attributes, link hrefs and bare-string @importOpenagent/security hive/hosted-available-lke648397-260827-5n31 security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
channels:add check:passed
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 2 days