Skip to content
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

Pass options.global as predef arg to JSHINT #216

Merged
merged 4 commits into from Sep 1, 2018

Conversation

westonruter
Copy link
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

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

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.

None yet

5 participants