| 
									
										
										
										
											2013-05-18 17:04:22 -07:00
										 |  |  | { | 
					
						
							| 
									
										
										
											
												Be more strict with JSHint.
Summary: Add a bunch of extra checks to be performed by `jshint`. For documentation, see http://jshint.com/docs/options/.
Test Plan:
Ran `jshint --config support/jshint/jshintconfig webroot/rsrc/js/`. There were a bunch of existing violations, but some of these are legitimate and probably require attention.
```lang=json
{
  "bitwise": true, // 0 violations
  "curly": true, // 0 violations
  "immed": true, // 1 violation
  "indent": 2, // 0 violations
  "latedef": true, // 10 violations
  "newcap": true, // 1 violation
  "noarg": true, // 0 violations
  "quotmark": "single", // 55 violations
  "undef": true, // 24 violations
  "unused": true, // 107 violations
  "expr": true,
  "loopfunc": true,
  "sub": true,
  "globals": {
    "JX": false,
    "__DEV__": false
  },
  "browser": true
}
```
Reviewers: #blessed_reviewers, epriestley
Reviewed By: #blessed_reviewers, epriestley
Subscribers: epriestley, Korvin
Differential Revision: https://secure.phabricator.com/D9659
											
										 
											2014-06-23 04:07:52 +10:00
										 |  |  |   "bitwise": true, | 
					
						
							|  |  |  |   "curly": true, | 
					
						
							| 
									
										
										
										
											2015-01-20 21:25:12 +11:00
										 |  |  |   "freeze": true, | 
					
						
							| 
									
										
										
											
												Be more strict with JSHint.
Summary: Add a bunch of extra checks to be performed by `jshint`. For documentation, see http://jshint.com/docs/options/.
Test Plan:
Ran `jshint --config support/jshint/jshintconfig webroot/rsrc/js/`. There were a bunch of existing violations, but some of these are legitimate and probably require attention.
```lang=json
{
  "bitwise": true, // 0 violations
  "curly": true, // 0 violations
  "immed": true, // 1 violation
  "indent": 2, // 0 violations
  "latedef": true, // 10 violations
  "newcap": true, // 1 violation
  "noarg": true, // 0 violations
  "quotmark": "single", // 55 violations
  "undef": true, // 24 violations
  "unused": true, // 107 violations
  "expr": true,
  "loopfunc": true,
  "sub": true,
  "globals": {
    "JX": false,
    "__DEV__": false
  },
  "browser": true
}
```
Reviewers: #blessed_reviewers, epriestley
Reviewed By: #blessed_reviewers, epriestley
Subscribers: epriestley, Korvin
Differential Revision: https://secure.phabricator.com/D9659
											
										 
											2014-06-23 04:07:52 +10:00
										 |  |  |   "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, | 
					
						
							| 
									
										
										
										
											2014-12-30 02:58:22 -08:00
										 |  |  |     "Raphael": false, | 
					
						
							| 
									
										
										
											
												Be more strict with JSHint.
Summary: Add a bunch of extra checks to be performed by `jshint`. For documentation, see http://jshint.com/docs/options/.
Test Plan:
Ran `jshint --config support/jshint/jshintconfig webroot/rsrc/js/`. There were a bunch of existing violations, but some of these are legitimate and probably require attention.
```lang=json
{
  "bitwise": true, // 0 violations
  "curly": true, // 0 violations
  "immed": true, // 1 violation
  "indent": 2, // 0 violations
  "latedef": true, // 10 violations
  "newcap": true, // 1 violation
  "noarg": true, // 0 violations
  "quotmark": "single", // 55 violations
  "undef": true, // 24 violations
  "unused": true, // 107 violations
  "expr": true,
  "loopfunc": true,
  "sub": true,
  "globals": {
    "JX": false,
    "__DEV__": false
  },
  "browser": true
}
```
Reviewers: #blessed_reviewers, epriestley
Reviewed By: #blessed_reviewers, epriestley
Subscribers: epriestley, Korvin
Differential Revision: https://secure.phabricator.com/D9659
											
										 
											2014-06-23 04:07:52 +10:00
										 |  |  |     "__DEV__": false | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   "browser": true | 
					
						
							| 
									
										
										
										
											2013-05-18 17:04:22 -07:00
										 |  |  | } |