mafintosh / mafintosh/generate-function

Emit 'unsafe-eval' error in atom editor

Open
#1 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
78
Forks
9
PR merge metrics
No merged PRs in 30d

Description

This module trigger 'unsafe-eval' error in environment with permission restrictions like Atom Editor. It cause huge problem in some modules like linter-eslint ([issue](https://github.com/AtomLinter/linter-eslint/issues/253)).

Nodejs' `vm.runInThisContext` method could help to avoid this.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by reading the module entry point and the use of generated functions in the repository; the issue does not name specific files or tests. Investigate Node.js vm.runInThisContext in the Atom Editor permission-restricted environment, then verify that the unsafe-eval error no longer affects users such as linter-eslint.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.