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

Reimplement missing code from jshint.js #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .mailmap
Expand Up @@ -23,3 +23,4 @@ Carl Ekerot <kalle@implode.se> Carl Ekerot <carl.ekerot@lunicore.se>
Ryan Cannon <ryan@ryancannon.com> Ryan Cannon <ryan@ryancannon.com>
Rob Friesel <rob@founddrama.net> Rob Friesel <robf@dealer.com>
Felix Gnass <fgnass@gmail.com> Felix Gnass <felix.gnass@neteye.de>
Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
9 changes: 8 additions & 1 deletion .travis.yml
@@ -1,9 +1,16 @@
language: node_js
after_success: npm run coverage && cat ./coverage/lcov.info | coveralls
before_install:
# These packages cannot be installed in legacy versions of Node.js. Because
# they are only needed to verify correctness in a browser-like environment,
# they can be removed (and the tests skipped) without effecting coverage.
- if [[ $(node --version) != v6* ]] ; then
node scripts/remove-dev-dependencies.js phantom phantomjs-prebuilt;
fi
script:
- npm run pretest
- npm run test-node
- npm run test-262
- if [[ $(node --version) == v6* ]] ; then npm run test-262; fi
- if [[ $(node --version) == v6* ]] ; then npm run test-browser; fi
node_js:
- "0.10"
Expand Down
71 changes: 71 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,74 @@
<a name="2.9.7"></a>
## [2.9.7](https://github.com/jshint/jshint/compare/2.9.6...v2.9.7) (2018-12-07)

This release corrects a packaging issue. It is not expected to modify JSHint's behavior.

<a name="2.9.6"></a>
## [2.9.6](https://github.com/jshint/jshint/compare/2.9.5...v2.9.6) (2018-07-30)

### Bug Fixes

* Add missing global objects for browser env ([badc7a4](https://github.com/jshint/jshint/commit/badc7a4))
* Add other Fetch spec globals ([07bb596](https://github.com/jshint/jshint/commit/07bb596)), closes [#2582](https://github.com/jshint/jshint/issues/2582)
* Allow closing over immutable bindings ([7091685](https://github.com/jshint/jshint/commit/7091685))
* Allow computed method names in obj literal ([a5ff715](https://github.com/jshint/jshint/commit/a5ff715))
* Allow empty export and trailing comma ([631327e](https://github.com/jshint/jshint/commit/631327e)), closes [#2567](https://github.com/jshint/jshint/issues/2567)
* Avoid infinite loop on invalid `for` stmt ([56a4379](https://github.com/jshint/jshint/commit/56a4379))
* Consistently ignore dot-prefixed dirs ([8d4317e](https://github.com/jshint/jshint/commit/8d4317e))
* Correct impl of built-in bindings ([a11d631](https://github.com/jshint/jshint/commit/a11d631))
* Correct interpretation of whitespace ([dd06eea](https://github.com/jshint/jshint/commit/dd06eea))
* Correct location of reported error ([1c434a3](https://github.com/jshint/jshint/commit/1c434a3))
* Correct location reported for W043 ([1d04868](https://github.com/jshint/jshint/commit/1d04868))
* Correct reporting of var name in list comprehensions ([0ff6644](https://github.com/jshint/jshint/commit/0ff6644))
* Correct restriction on function name ([55aa54e](https://github.com/jshint/jshint/commit/55aa54e))
* Correct spelling of Uint8ClampedArray ([8df4a32](https://github.com/jshint/jshint/commit/8df4a32))
* Create block scope for `switch` statements ([aa2be10](https://github.com/jshint/jshint/commit/aa2be10))
* Disallow default values in rest parameters ([b420aed](https://github.com/jshint/jshint/commit/b420aed))
* Do not create binding for illegal syntax ([9fe8c94](https://github.com/jshint/jshint/commit/9fe8c94))
* Do not warn about non-ambiguous linebreaks ([ab3ab85](https://github.com/jshint/jshint/commit/ab3ab85))
* Fix "is is" message typos ([7993101](https://github.com/jshint/jshint/commit/7993101))
* Preserve functionality in "legacy" Node.js ([2f6ac13](https://github.com/jshint/jshint/commit/2f6ac13))
* recognize Jasmine global `spyOnProperty` ([827237f](https://github.com/jshint/jshint/commit/827237f)), closes [#3183](https://github.com/jshint/jshint/issues/3183)
* Relax restriction on asgnmnt to arguments ([0a66710](https://github.com/jshint/jshint/commit/0a66710))
* Remove warning W100 ([ff71d3c](https://github.com/jshint/jshint/commit/ff71d3c))
* Report error for duplicate arrow params ([506c7d5](https://github.com/jshint/jshint/commit/506c7d5))
* Report error for redeclared generator fns ([8896fa3](https://github.com/jshint/jshint/commit/8896fa3))
* Restrict "name" of strict mode functions ([a554c89](https://github.com/jshint/jshint/commit/a554c89))
* Restrict `super` usage to valid forms ([8f3f880](https://github.com/jshint/jshint/commit/8f3f880))
* Restrict IdentifierNames in ES5 code ([5995a9f](https://github.com/jshint/jshint/commit/5995a9f))
* Tolerate division following closing brace ([3aa02db](https://github.com/jshint/jshint/commit/3aa02db))
* Tolerate RegExp as `void` operand ([3f920b5](https://github.com/jshint/jshint/commit/3f920b5))
* Tolerate whitespace in inline directives ([efeb0f8](https://github.com/jshint/jshint/commit/efeb0f8))

### Features

* List outer scoped variables of W083 ([d03662c](https://github.com/jshint/jshint/commit/d03662c)), closes [#3211](https://github.com/jshint/jshint/issues/3211)

<a name="2.9.5"></a>
## [2.9.5](https://github.com/jshint/jshint/compare/2.9.4...v2.9.5) (2017-06-22)


### Bug Fixes

* Account for hoisting of importing bindings ([bd36953](https://github.com/jshint/jshint/commit/bd36953))
* Add onmessage to vars.worker ([540ed85](https://github.com/jshint/jshint/commit/540ed85))
* Added missing "Storage" browser variable ([8cfe5ad](https://github.com/jshint/jshint/commit/8cfe5ad))
* Avoid crash when peeking past end of prog ([c083866](https://github.com/jshint/jshint/commit/c083866))
* Avoid false positive ([44d9e0b](https://github.com/jshint/jshint/commit/44d9e0b))
* Close synthetic scope for labeled blocks ([5f0f789](https://github.com/jshint/jshint/commit/5f0f789))
* Fail gracefully on invalid `if` syntax (#3103) ([8c6ac87](https://github.com/jshint/jshint/commit/8c6ac87))
* Honor "ignore" file when linting STDIN ([d4f83a4](https://github.com/jshint/jshint/commit/d4f83a4))
* Parse `for-in/of` head LHS as asnmt target ([da52ad9](https://github.com/jshint/jshint/commit/da52ad9))
* Removed warning message W041 (#3115) ([376fa62](https://github.com/jshint/jshint/commit/376fa62))
* Throw W033 instead of E058 when the ; after a do-while stmt is missing ([6907cd4](https://github.com/jshint/jshint/commit/6907cd4))

### Features

* Add enforcing option: `trailingcomma` (#3090) ([42dc572](https://github.com/jshint/jshint/commit/42dc572))
* Add MediaRecorder to vars.js ([b075919](https://github.com/jshint/jshint/commit/b075919))



<a name="2.9.4"></a>
## [2.9.4](https://github.com/jshint/jshint/compare/2.9.3...v2.9.4) (2016-10-20)

Expand Down
75 changes: 75 additions & 0 deletions CODE_OF_CONDUCT.md
@@ -0,0 +1,75 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
education, socio-economic status, nationality, personal appearance, race,
religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at admin@jshint.org (or any of the
members individually: waldron.rick@gmail.com, caitpotter88@gmail.com, and
mike@mikepennisi.com). All complaints will be reviewed and investigated and
will result in a response that is deemed necessary and appropriate to the
circumstances. The project team is obligated to maintain confidentiality with
regard to the reporter of an incident. Further details of specific enforcement
policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -85,6 +85,7 @@ Engineers from these companies and projects use JSHint:
* [Apache CouchDB](http://couchdb.apache.org/)
* [Google](https://www.google.com/)
* [Codacy](https://www.codacy.com) [ref](https://support.codacy.com/hc/en-us/articles/207995005-Special-Thanks)
* [Spotify](https://www.spotify.com)

And many more!

Expand All @@ -102,7 +103,7 @@ reasons. This license is included as an in-line within the file it concerns.
JSHint is currently maintained by [Rick Waldron](https://github.com/rwaldron/),
[Caitlin Potter](https://github.com/caitp/), [Mike
Pennisi](https://github.com/jugglinmike/), and [Luke
Page](https://github.com/lukeapage).
Page](https://github.com/lukeapage). You can reach them via admin@jshint.org.

## Previous Maintainers

Expand Down
6 changes: 5 additions & 1 deletion appveyor.yml
Expand Up @@ -12,6 +12,10 @@ environment:
install:
- ps: Install-Product node $env:nodejs_version
- git submodule update --init --recursive
# These packages cannot be installed in legacy versions of Node.js. Because
# they are only needed to verify correctness in a browser-like environment,
# they can be removed (and the tests skipped) without effecting coverage.
- if NOT "%nodejs_version%" == "6" node scripts/remove-dev-dependencies.js phantom phantomjs-prebuilt
- npm install

build: off
Expand All @@ -20,7 +24,7 @@ test_script:
- node --version && npm --version
- npm run test-node
- if "%nodejs_version%" == "6" npm run test-browser
- npm run test-262
- if "%nodejs_version%" == "6" npm run test-262

cache:
- node_modules # local npm modules
Expand Down