Skip to content

Commit 7052e88

Browse files
kabirbaidhyanknapp
authored andcommitted
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
1 parent b8913fc commit 7052e88

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

Diff for: .eslintrc.js

+6-18
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,8 @@ module.exports = {
44
"self": false
55
},
66
"env": {
7-
"node": true
8-
},
9-
"ecmaFeatures": {
10-
// Enabling features that can be implemented without polyfills. Want to avoid polyfills at this time.
11-
"arrowFunctions": true,
12-
"blockBindings": true,
13-
"defaultParams": true,
14-
"destructuring": true,
15-
"modules": true,
16-
"objectLiteralComputedProperties": true,
17-
"objectLiteralDuplicateProperties": true,
18-
"objectLiteralShorthandMethods": true,
19-
"objectLiteralShorthandProperties": true,
20-
"restParams": true,
21-
"spread": true,
22-
"templateStrings": true
7+
"node": true,
8+
"es6": true
239
},
2410
"rules": {
2511
// overrides eslint:recommended defaults
@@ -124,6 +110,8 @@ module.exports = {
124110
"no-var": "warn"
125111
},
126112
"parserOptions": {
127-
"sourceType": "module"
113+
"sourceType": "module",
114+
"ecmaVersion": 6,
115+
"ecmaFeatures": {}
128116
}
129-
}
117+
}

0 commit comments

Comments
 (0)