Skip to content

Pass options.global as predef arg to JSHINT#216

Merged
thedaviddias merged 4 commits intohtmlhint:developfrom
xwp:fix/pass-globals-as-predef-arg
Sep 1, 2018
Merged

Pass options.global as predef arg to JSHINT#216
thedaviddias merged 4 commits intohtmlhint:developfrom
xwp:fix/pass-globals-as-predef-arg

Conversation

@westonruter
Copy link
Copy Markdown
Contributor

The JSHINT API specifies that globals actually get passed as the predef, the 3rd argument to the function and not part of the options. This fixes that.

Compare with CodeMirror's jshint integration: https://github.com/codemirror/CodeMirror/blob/e49a19f5cacb447558f162014eb26b8c45b30941/addon/lint/javascript-lint.js#L31

@coveralls
Copy link
Copy Markdown

coveralls commented Aug 26, 2017

Coverage Status

Coverage remained the same at 98.734% when pulling 9715d2c on xwp:fix/pass-globals-as-predef-arg into 60447c9 on yaniswang:master.

westonruter added a commit to xwp/HTMLHint that referenced this pull request Aug 27, 2017
@thedaviddias thedaviddias changed the base branch from master to develop August 27, 2018 17:38
@thedaviddias thedaviddias added enhancement Functionality that enhances existing features triage An HTMLHint team member will look at this issue labels Aug 27, 2018
@codecov-io
Copy link
Copy Markdown

codecov-io commented Aug 27, 2018

Codecov Report

Merging #216 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           develop   #216   +/-   ##
======================================
  Coverage      100%   100%           
======================================
  Files            1      1           
  Lines            1      1           
======================================
  Hits             1      1

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c30d0b3...a1eecd3. Read the comment docs.

@thedaviddias thedaviddias merged commit e56286d into htmlhint:develop Sep 1, 2018
thedaviddias pushed a commit that referenced this pull request Sep 3, 2018
The JSHINT [API](http://jshint.com/docs/api/) specifies that `globals` actually get passed as the `predef`, the 3rd argument to the function and not part of the `options`. This fixes that.

Compare with CodeMirror's jshint integration: https://github.com/codemirror/CodeMirror/blob/e49a19f5cacb447558f162014eb26b8c45b30941/addon/lint/javascript-lint.js#L31
thedaviddias pushed a commit that referenced this pull request Sep 3, 2018
The JSHINT [API](http://jshint.com/docs/api/) specifies that `globals` actually get passed as the `predef`, the 3rd argument to the function and not part of the `options`. This fixes that.

Compare with CodeMirror's jshint integration: https://github.com/codemirror/CodeMirror/blob/e49a19f5cacb447558f162014eb26b8c45b30941/addon/lint/javascript-lint.js#L31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Functionality that enhances existing features triage An HTMLHint team member will look at this issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants