Page MenuHomePhabricator

Enable the `freeze` option for JSHint
ClosedPublic

Authored by joshuaspence on Jan 20 2015, 7:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Feb 21, 12:35 AM
Unknown Object (File)
Tue, Feb 13, 4:41 PM
Unknown Object (File)
Tue, Feb 13, 8:43 AM
Unknown Object (File)
Sat, Feb 3, 4:00 AM
Unknown Object (File)
Jan 27 2024, 5:08 AM
Unknown Object (File)
Jan 18 2024, 9:28 PM
Unknown Object (File)
Dec 15 2023, 5:30 PM
Unknown Object (File)
Nov 30 2023, 4:35 AM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Commits
Restricted Diffusion Commit
rP8113e6d8c1a3: 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.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Enable the `freeze` option for JSHint.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jan 20 2015, 9:20 AM
This revision was automatically updated to reflect the committed changes.