summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-02-18 12:23:02 -0500
committercjihrig <cjihrig@gmail.com>2019-02-20 12:25:10 -0500
commit14c089b50e3163dc2fd13cec718d219183744709 (patch)
tree54870c5415043209912108709aca227fdb3a9848 /tools/node_modules/eslint
parentcfcbfc001150e088b489b1fb3de50d516f4e3c65 (diff)
downloadandroid-node-v8-14c089b50e3163dc2fd13cec718d219183744709.tar.gz
android-node-v8-14c089b50e3163dc2fd13cec718d219183744709.tar.bz2
android-node-v8-14c089b50e3163dc2fd13cec718d219183744709.zip
tools: update ESLint to 5.14.1
Update ESLint to 5.14.1 PR-URL: https://github.com/nodejs/node/pull/26190 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'tools/node_modules/eslint')
-rw-r--r--tools/node_modules/eslint/lib/rules/sort-keys.js6
-rw-r--r--tools/node_modules/eslint/package.json2
2 files changed, 5 insertions, 3 deletions
diff --git a/tools/node_modules/eslint/lib/rules/sort-keys.js b/tools/node_modules/eslint/lib/rules/sort-keys.js
index 08bfcdf3d8..fd5dd8a13b 100644
--- a/tools/node_modules/eslint/lib/rules/sort-keys.js
+++ b/tools/node_modules/eslint/lib/rules/sort-keys.js
@@ -129,8 +129,10 @@ module.exports = {
stack = stack.upper;
},
- SpreadElement() {
- stack.prevName = null;
+ SpreadElement(node) {
+ if (node.parent.type === "ObjectExpression") {
+ stack.prevName = null;
+ }
},
Property(node) {
diff --git a/tools/node_modules/eslint/package.json b/tools/node_modules/eslint/package.json
index 316fa200c4..6712e94844 100644
--- a/tools/node_modules/eslint/package.json
+++ b/tools/node_modules/eslint/package.json
@@ -134,5 +134,5 @@
"publish-release": "node Makefile.js publishRelease",
"test": "node Makefile.js test"
},
- "version": "5.14.0"
+ "version": "5.14.1"
} \ No newline at end of file