eugeneware / eugeneware/deglobalify

Recognize other "global" patterns, not only "window.x"

Open
#2 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
55
Forks
1
PR merge metrics
No merged PRs in 30d

Description

How much would it take to support "bad modules" that pollute global namespaces by doing

```
var myfunc = function() { return 42 }
```

or

```
function myfunc() { return 42 }
```

or even

```
this.myfunc = function() { return 42 }
```

?

All of these are out there in the wild, but none of these can be turned to "good module" using deamdify now. Unfortunately language parsing is Greek to me. Is it feasible?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.