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

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.
@@ -45,8 +45,16 @@ module.exports = {
45
45
  return;
46
46
  }
47
47
  const key = property.key.name;
48
- const value = property.value.name;
49
- const name = key === value ? value : `${key}: ${value}`;
48
+ let value = property.value.name;
49
+
50
+ let name = key === value ? value : `${key}: ${value}`;
51
+
52
+ if (!value && property.value.left && property.value.right) {
53
+ value = property.value.left.name;
54
+ const rightValue = property.value.right.value;
55
+ name = key === value ? `${value} = ${rightValue}` : `${key}: ${value} = ${rightValue}`;
56
+ }
57
+
50
58
  propertiesArr.push(name);
51
59
  });
52
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-turmag-special-rules",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "type": "commonjs",
5
5
  "description": "Special eslint rules for your awesome projects",
6
6
  "keywords": [