mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 15:22:41 +01:00
8113e6d8c1
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
24 lines
354 B
Text
24 lines
354 B
Text
{
|
|
"bitwise": true,
|
|
"curly": true,
|
|
"freeze": true,
|
|
"immed": true,
|
|
"indent": 2,
|
|
"latedef": true,
|
|
"newcap": true,
|
|
"noarg": true,
|
|
"quotmark": "single",
|
|
"undef": true,
|
|
"unused": true,
|
|
|
|
"expr": true,
|
|
"loopfunc": true,
|
|
"sub": true,
|
|
|
|
"globals": {
|
|
"JX": false,
|
|
"Raphael": false,
|
|
"__DEV__": false
|
|
},
|
|
"browser": true
|
|
}
|