diff options
-rw-r--r-- | .eslintrc | 17 | ||||
-rw-r--r-- | lib/index.js | 1 | ||||
-rw-r--r-- | spec/.eslintrc | 4 |
3 files changed, 19 insertions, 3 deletions
@@ -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 |