summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2015-04-20 02:24:13 -0500
committerkpdecker <kpdecker@gmail.com>2015-04-20 02:24:49 -0500
commitecf60ab1bfc2afb4202ec7a16f1754684825da39 (patch)
tree90e2dcaaecde1816f7445db58b691ca7122bf2d7
parentc6ab044fa88d54ace17200b47213c80cdb24ead6 (diff)
downloadhandlebars.js-ecf60ab1bfc2afb4202ec7a16f1754684825da39.zip
handlebars.js-ecf60ab1bfc2afb4202ec7a16f1754684825da39.tar.gz
handlebars.js-ecf60ab1bfc2afb4202ec7a16f1754684825da39.tar.bz2
Enable additional es6 features in eslint
-rw-r--r--.eslintrc17
-rw-r--r--lib/index.js1
-rw-r--r--spec/.eslintrc4
3 files changed, 19 insertions, 3 deletions
diff --git a/.eslintrc b/.eslintrc
index b6420d1..253a1bb 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -6,7 +6,18 @@
"node": true
},
"ecmaFeatures": {
- "modules": true
+ // Enabling features that can be implemented without polyfills. Want to avoid polyfills at this time.
+ "arrowFunctions": true,
+ "blockBindings": true,
+ "defaultParams": true,
+ "destructuring": true,
+ "modules": true,
+ "objectLiteralComputedProperties": true,
+ "objectLiteralDuplicateProperties": true,
+ "objectLiteralShorthandMethods": true,
+ "objectLiteralShorthandProperties": true,
+ "spread": true,
+ "templateStrings": true
},
"rules": {
// Possible Errors //
@@ -181,6 +192,8 @@
"space-return-throw-case": 2,
"space-unary-ops": 2,
"spaced-line-comment": 2,
- "wrap-regex": 1
+ "wrap-regex": 1,
+
+ "no-var": 1
}
} \ No newline at end of file
diff --git a/lib/index.js b/lib/index.js
index ac55967..0383c02 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -1,5 +1,6 @@
// USAGE:
// var handlebars = require('handlebars');
+/* eslint-disable no-var */
// var local = handlebars.create();
diff --git a/spec/.eslintrc b/spec/.eslintrc
index 2d05814..21871d5 100644
--- a/spec/.eslintrc
+++ b/spec/.eslintrc
@@ -29,6 +29,8 @@
},
"rules": {
// Disabling for tests, for now.
- "no-path-concat": 0
+ "no-path-concat": 0,
+
+ "no-var": 0
}
} \ No newline at end of file