comparison .jshintrc @ 35162:bdd2e18b54c5

hgweb: add .jshintrc with some basic rules This file is picked up automatically by jshint, so no extra changes required in test-check-jshint.t.
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 22 Nov 2017 22:18:06 +0800
parents
children
comparison
equal deleted inserted replaced
35161:1207a50a6dc3 35162:bdd2e18b54c5
1 {
2 // Enforcing
3 "eqeqeq" : true, // true: Require triple equals (===) for comparison
4 "forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
5 "freeze" : true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc.
6 "nonbsp" : true, // true: Prohibit "non-breaking whitespace" characters.
7 "undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
8
9 // Environments
10 "browser" : true // Web Browser (window, document, etc)
11 }