[eslint-v2] ecmaFeatures => parserOptions

This commit is contained in:
Harrison Shoff
2016-02-12 11:36:08 -08:00
committed by Jordan Harband
parent dff5099238
commit 4f32315b24

View File

@@ -2,24 +2,12 @@ module.exports = {
'env': {
'es6': true
},
'ecmaFeatures': {
'arrowFunctions': true,
'blockBindings': true,
'classes': true,
'defaultParams': true,
'destructuring': true,
'forOf': true,
'generators': false,
'modules': true,
'objectLiteralComputedProperties': true,
'objectLiteralDuplicateProperties': false,
'objectLiteralShorthandMethods': true,
'objectLiteralShorthandProperties': true,
'restParams': true,
'spread': true,
'superInFunctions': true,
'templateStrings': true,
'jsx': true
'parserOptions': {
'ecmaVersion': 6,
'sourceType': 'module',
'ecmaFeatures': {
'jsx': true
}
},
'rules': {
// enforces no braces where they can be omitted