eslint 5.14.0 → 5.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ v5.14.1 - February 18, 2019
2
+
3
+ * [`1d6e639`](https://github.com/eslint/eslint/commit/1d6e63930073e79e52890f552cc6e9a0646b7fb4) Fix: sort-keys throws Error at SpreadElement (fixes #11402) (#11403) (Krist Wongsuphasawat)
4
+
1
5
  v5.14.0 - February 15, 2019
2
6
 
3
7
  * [`85a04b3`](https://github.com/eslint/eslint/commit/85a04b319e6dfde1458174cd1d8c9e7d33da0871) Fix: adds conditional for separateRequires in one-var (fixes #10179) (#10980) (Scott Stern)
@@ -129,8 +129,10 @@ module.exports = {
129
129
  stack = stack.upper;
130
130
  },
131
131
 
132
- SpreadElement() {
133
- stack.prevName = null;
132
+ SpreadElement(node) {
133
+ if (node.parent.type === "ObjectExpression") {
134
+ stack.prevName = null;
135
+ }
134
136
  },
135
137
 
136
138
  Property(node) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint",
3
- "version": "5.14.0",
3
+ "version": "5.14.1",
4
4
  "author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
5
5
  "description": "An AST-based pattern checker for JavaScript.",
6
6
  "bin": {