Resolve deprecation warning message from eslint while running eslint (#1586)
* Resolve eslint deprecation warning There was a DeprecationWarning message from eslint saying that `ecmaFeatures` property has been deprecated. Moved it under the `parserOptions` as per recommended here - https://eslint.org/docs/user-guide/migrating-to-2.0.0. * Set escmaVersion = 6 * Use ES6 built-in global variables * Remove flags in favor of ecmaVersion
This commit is contained in:
committed by
Nils Knappmeier
parent
b8913fcc65
commit
7052e88068
+5
-17
@@ -4,22 +4,8 @@ module.exports = {
|
|||||||
"self": false
|
"self": false
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"node": true
|
"node": true,
|
||||||
},
|
"es6": true
|
||||||
"ecmaFeatures": {
|
|
||||||
// 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,
|
|
||||||
"restParams": true,
|
|
||||||
"spread": true,
|
|
||||||
"templateStrings": true
|
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
// overrides eslint:recommended defaults
|
// overrides eslint:recommended defaults
|
||||||
@@ -124,6 +110,8 @@ module.exports = {
|
|||||||
"no-var": "warn"
|
"no-var": "warn"
|
||||||
},
|
},
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"sourceType": "module"
|
"sourceType": "module",
|
||||||
|
"ecmaVersion": 6,
|
||||||
|
"ecmaFeatures": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user