Skip to content

Commit 301aee9

Browse files
authoredJul 9, 2023
fix: update jshint version to 2.13.6; change esversion to target ECMAScript 11 (#5243)
- Update JSHint version to current latest - Change default option to target ECMAScript 11 - Replace deprecated property esnext with esversion
1 parent 133345f commit 301aee9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
 

‎lib/ace/mode/javascript/jshint.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -2392,13 +2392,13 @@ module.exports = slice;
23922392
exports.noConflict = function () { global._ = current; return exports; };
23932393
}()));
23942394
}(this, (function () {
2395-
// Underscore.js 1.13.4
2395+
// Underscore.js 1.13.6
23962396
// https://underscorejs.org
23972397
// (c) 2009-2022 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
23982398
// Underscore may be freely distributed under the MIT license.
23992399

24002400
// Current version.
2401-
var VERSION = '1.13.4';
2401+
var VERSION = '1.13.6';
24022402

24032403
// Establish the root object, `window` (`self`) in the browser, `global`
24042404
// on the server, or `this` in some virtual machines. We use `self`
@@ -4461,7 +4461,7 @@ module.exports = slice;
44614461
/*exported console */
44624462

44634463
var _ = _dereq_("underscore");
4464-
_.clone = _dereq_("lodash.clone");
4464+
_.clone = _dereq_("lodash.clone");
44654465
var events = _dereq_("events");
44664466
var vars = _dereq_("./vars.js");
44674467
var messages = _dereq_("./messages.js");
@@ -8930,7 +8930,7 @@ var JSHINT = (function() {
89308930
var id = state.tokens.prev;
89318931
value = expression(context, 10);
89328932
if (value) {
8933-
if (value.identifier && value.value === "undefined") {
8933+
if (!isConst && value.identifier && value.value === "undefined") {
89348934
warning("W080", id, id.value);
89358935
}
89368936
if (!lone) {
@@ -13527,7 +13527,7 @@ var errors = {
1352713527

1352813528
// Constants
1352913529
E011: "'{a}' has already been declared.",
13530-
E012: "const '{a}' is initialized to 'undefined'.",
13530+
E012: "Missing initializer for constant '{a}'.",
1353113531
E013: "Attempting to override '{a}' which is a constant.",
1353213532

1353313533
// Regular expressions
@@ -15122,7 +15122,7 @@ exports.regexpDot = /(^|[^\\])(\\\\)*\./;
1512215122
*/
1512315123

1512415124
var _ = _dereq_("underscore");
15125-
_.slice = _dereq_("lodash.slice");
15125+
_.slice = _dereq_("lodash.slice");
1512615126
var events = _dereq_("events");
1512715127

1512815128
// Used to denote membership in lookup tables (a primitive value such as `true`

‎lib/ace/mode/javascript_worker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ oop.inherits(JavaScriptWorker, Mirror);
7979
this.options = options || {
8080
// undef: true,
8181
// unused: true,
82-
esnext: true,
82+
esversion: 11,
8383
moz: true,
8484
devel: true,
8585
browser: true,

0 commit comments

Comments
 (0)
Please sign in to comment.