aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/.jscsrc3
-rw-r--r--web/.jshintrc2
2 files changed, 3 insertions, 2 deletions
diff --git a/web/.jscsrc b/web/.jscsrc
index 70c9dc4..546e6a5 100644
--- a/web/.jscsrc
+++ b/web/.jscsrc
@@ -1,5 +1,6 @@
{
"preset": "crockford",
"maxErrors": 100,
- "excludeFiles": ["simple/app.js"]
+ "excludeFiles": ["simple/app.js"],
+ "requireDotNotation": false
}
diff --git a/web/.jshintrc b/web/.jshintrc
index b0c5d10..cc0cdd4 100644
--- a/web/.jshintrc
+++ b/web/.jshintrc
@@ -55,7 +55,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