From 3870e780a48c92c33c571cd6212cf866094d001d Mon Sep 17 00:00:00 2001 From: Eragos Date: Thu, 4 Aug 2016 19:35:30 +0200 Subject: [PATCH] Tolerate using `[]` notation when it can still be expressed in dot notation --- .jshintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jshintrc b/.jshintrc index a4fce1b..9dfdfed 100644 --- a/.jshintrc +++ b/.jshintrc @@ -62,7 +62,7 @@ "proto" : false, // true: Tolerate using the `__proto__` property "scripturl" : false, // true: Tolerate script-targeted URLs "shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;` - "sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation + "sub" : true, // true: Tolerate using `[]` notation when it can still be expressed in dot notation "supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;` "validthis" : false, // true: Tolerate using this in a non-constructor function