mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 10:38:03 -05:00
[eslint-v2] ecmaFeatures => parserOptions
This commit is contained in:
committed by
Jordan Harband
parent
dff5099238
commit
4f32315b24
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user