Enable additional es6 features in eslint

This commit is contained in:
kpdecker
2015-04-20 02:24:13 -05:00
parent c6ab044fa8
commit ecf60ab1bf
3 changed files with 19 additions and 3 deletions
+15 -2
View File
@@ -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
}
}
+1
View File
@@ -1,5 +1,6 @@
// USAGE:
// var handlebars = require('handlebars');
/* eslint-disable no-var */
// var local = handlebars.create();
+3 -1
View File
@@ -29,6 +29,8 @@
},
"rules": {
// Disabling for tests, for now.
"no-path-concat": 0
"no-path-concat": 0,
"no-var": 0
}
}