HomePhabricator

Enable the `freeze` option for JSHint

Authored by joshuaspence.

Description

Enable the freeze option for JSHint

Summary:
This option prohibits overwriting prototypes of native objects such as Array, Date and so on.

// jshint freeze:true
Array.prototype.count = function (value) { return 4; };
// -> Warning: Extending prototype of native object: 'Array'.

Test Plan: Linted existing JavaScript files, found no violations.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11439

Details

Committed
joshuaspenceJan 20 2015, 10:25 AM
Pushed
joshuaspenceJan 20 2015, 10:25 AM
Reviewer
Blessed Reviewers
Differential Revision
D11439: Enable the `freeze` option for JSHint
Parents
rP02eca684ae8c: Add a call to predict the next event for a trigger
Branches
Unknown
Tags
Unknown