Download:
child 150:6878b4f041fe
parent 148:7a236aa969f8
149:344b03642d02
Anton Shestakov <av6@dwimlabs.net>, Sun, 30 Jul 2017 23:17:26 +0800
ui: more jshint enforcing

1 файлов изменено, 9 вставок(+), 0 удалений(-) [+]
.jshintrc file | annotate | diff | comparison | revisions
--- a/.jshintrc Sun Jul 30 23:00:46 2017 +0800
+++ b/.jshintrc Sun Jul 30 23:17:26 2017 +0800
@@ -2,6 +2,15 @@
// Enforcing
"curly" : true, // true: Require {} for every new block or scope
"eqeqeq" : true, // true: Require triple equals (===) for comparison
+ "forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
+ "freeze" : true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc.
+ "latedef" : true, // true: Require variables/functions to be defined before being used
+ "newcap" : true, // true: Require capitalization of all constructor functions e.g. `new F()`
+ "quotmark" : "single", // Quotation mark consistency:
+ // false : do nothing (default)
+ // true : ensure whatever is used is consistent
+ // "single" : require single quotes
+ // "double" : require double quotes
// Custom Globals
"globals" : {"_": false, "Backbone": false}