mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 11:30:55 +01:00
Enable the freeze
option for JSHint
Summary: This option prohibits overwriting prototypes of native objects such as `Array`, `Date` and so on. ```lang=js // 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
This commit is contained in:
parent
02eca684ae
commit
8113e6d8c1
2 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"bitwise": true,
|
||||
"curly": true,
|
||||
"freeze": true,
|
||||
"immed": true,
|
||||
"indent": 2,
|
||||
"latedef": true,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"bitwise": true,
|
||||
"curly": true,
|
||||
"freeze": true,
|
||||
"immed": true,
|
||||
"indent": 2,
|
||||
"latedef": true,
|
||||
|
|
Loading…
Reference in a new issue