-
Notifications
You must be signed in to change notification settings - Fork 29
Add missing JS files to eslint #1558
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| /* global d3 */ | ||
| /* exported barLineGraph, stackedAreaGraph, pieGraph */ | ||
|
|
||
| // eslint-disable-next-line no-unused-vars | ||
| const { barLineGraph, stackedAreaGraph, pieGraph } = (function () { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. interesting the exported from above doesn't resolve this. |
||
| const margin = { | ||
| top: 30, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| /* eslint-disable no-unused-vars */ | ||
| /* exported srchrep */ | ||
|
|
||
| var srchrep = (function () { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| /*global */ | ||
| /* eslint-disable no-unused-vars */ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm, I wonder if more exported are needed? Since we switched to modules though, we should rely on exports or window property assignments to resolve this? |
||
| /* exported openToolboxPopup */ | ||
|
|
||
| var openedToolboxPopups = []; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't remember why we didn't do *.js, because we should be able to, with appropriate excludes if necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You didn't, this is me being dumb. We don't need this PR.
If I look closely this is the modules section which should only have the modules in it -- not the scripts which are covered under the wildcard above. And that's why the other changes were needed -- because they are being checked as modules even though they weren't.
Sorry for the kerfuffle and thanks for calling this out Chris.