eslint-plugin-turmag-special-rules 1.0.26 → 1.0.28

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.
@@ -27,6 +27,13 @@ module.exports = {
27
27
  let areSmallAttributesInColumn = false;
28
28
  let areLinesRepeated = false;
29
29
 
30
+ let isObjectDestructured = false;
31
+ properties.forEach(property => {
32
+ if (property.value?.type === 'ObjectPattern') isObjectDestructured = true;
33
+ });
34
+
35
+ if (isObjectDestructured) return;
36
+
30
37
  if (properties.length < minProperties) {
31
38
  if (properties[0].loc.start.line !== properties[0].parent.loc.start.line) areSmallAttributesInColumn = true;
32
39
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-turmag-special-rules",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "type": "commonjs",
5
5
  "description": "Special eslint rules for your awesome projects",
6
6
  "keywords": [