1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-19 00:38:51 +02: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:
Joshua Spence 2015-01-20 21:25:12 +11:00
parent 02eca684ae
commit 8113e6d8c1
2 changed files with 2 additions and 0 deletions

View file

@ -1,6 +1,7 @@
{
"bitwise": true,
"curly": true,
"freeze": true,
"immed": true,
"indent": 2,
"latedef": true,

View file

@ -1,6 +1,7 @@
{
"bitwise": true,
"curly": true,
"freeze": true,
"immed": true,
"indent": 2,
"latedef": true,