eslint-plugin-lube 0.1.6 → 0.1.7

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/package.json CHANGED
@@ -23,5 +23,5 @@
23
23
  "test": "mocha"
24
24
  },
25
25
  "type": "commonjs",
26
- "version": "0.1.6"
26
+ "version": "0.1.7"
27
27
  }
@@ -124,7 +124,10 @@ module.exports = {
124
124
  // (left = right) => {}
125
125
  if ("AssignmentPattern" == type) {
126
126
  if (parent.left == node) {
127
- report(node)
127
+ // function func({ camelCase = true }) {}
128
+ if (parent.parent?.type != "Property") {
129
+ report(node)
130
+ }
128
131
  } else {
129
132
  defer(node)
130
133
  }
@@ -70,6 +70,7 @@ exports.module = (valid, invalid) => {
70
70
  pendingA = pendingB
71
71
  var pendingA, pendingB
72
72
  pendingA = pendingB
73
+ function func({ pendingA = 123 }) {}
73
74
  `,
74
75
  errors: [
75
76
  {
@@ -109,7 +110,9 @@ exports.module = (valid, invalid) => {
109
110
  pending_a = pending_b
110
111
  var pending_a, pending_b
111
112
  pending_a = pending_b
112
- `
113
+ function func({ pendingA = 123 }) {}
114
+ `,
115
+ parserOptions: { ecmaVersion: "latest" }
113
116
  },
114
117
  // AssignmentPattern
115
118
  {