• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jshint / jshint / 1570
100%

Build:
DEFAULT BRANCH: master
Ran 13 Feb 2015 04:13PM UTC
Jobs 1
Files 12
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1570

Pull #2172

travis-ci

jugglinmike
[[FEAT]] Implement new option `futurehostile`

A recent change to JSHint included the ECMAScript 6 global identifiers
in JSHint's collection of "predefined" variables. This disallowed the
definition of those global values even in contexts that did not
implement them.

The intent of this change was to help users avoid bugs when migrating to
the new version of the language. Re-using an existing warning mechanism
caused confusion among many users [1][2][3] for two reasons:

1. The generated warning messages were somewhat misleading (i.e. the
   warning "Redefinition of 'Promise'." is inaccurate in ES5
   environments)
2. The method of disabling the warnings did not accurately communicate
   the intent of the developer (i.e. setting `predef: -Promise` does not
   prompt the user to consider the user to consider if creating their
   own global variable named `Promise` is appropriate)

A dedicated warning message more clearly describes the best practice
that motivates this particular constraint on global variable names. An
explicit option makes it less likely that users will disable this
warning without understanding the motivation.

Intoduce a new option, `futurehostile`, and dedicated warning message to
better communicate the intent of restricting usage of future-reserved
identifiers.

[1] GH-1747 redefinition of Promise (W079)
[2] GH-1995 ES6 globals are activated even though esnext=false
[3] GH-2171 Remove Set from the ECMAScript5 reserved words
Pull Request #2172: [[FEAT]] Implement new option `futurehostile`

10 of 10 new or added lines in 2 files covered. (100.0%)

3541 of 3733 relevant lines covered (94.86%)

2149.84 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
src/jshint.js

Uncovered Existing Lines

Lines Coverage ∆ File
143
100.0
src/jshint.js
Jobs
ID Job ID Ran Files Coverage
2 1570.2 13 Feb 2015 04:13PM UTC 0
94.86
Travis Job 1570.2
Source Files on build 1570
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1570
  • Pull Request #2172
  • PR Base - master (#1556)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc