@bigbinary/eslint-plugin-neeto 1.1.18 → 1.1.19

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7064,7 +7064,8 @@
7064
7064
  fixToRemoveErrorNode = fixer.remove(node);
7065
7065
  }
7066
7066
  var indentLevel = context.getSourceCode().getFirstToken(node.parent.attributes[0]).loc.start.column;
7067
- var fixToAddProperty = positionToInsert === "below" ? fixer.insertTextAfter(node, "\n".concat(" ".repeat(indentLevel)).concat(property.key.name, "={").concat(property.value.name, "}")) : fixer.insertTextBefore(node, "".concat(property.key.name, "={").concat(property.value.name, "}\n").concat(" ".repeat(indentLevel)));
7067
+ var propertyValue = context.getSourceCode().getText(property.value);
7068
+ var fixToAddProperty = positionToInsert === "below" ? fixer.insertTextAfter(node, "\n".concat(" ".repeat(indentLevel)).concat(property.key.name, "={").concat(propertyValue, "}")) : fixer.insertTextBefore(node, "".concat(property.key.name, "={").concat(propertyValue, "}\n").concat(" ".repeat(indentLevel)));
7068
7069
  return [fixToRemoveComma, fixToRemoveErrorNode, fixToAddProperty].filter(Boolean);
7069
7070
  }
7070
7071
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/eslint-plugin-neeto",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "main": "dist/index.js",
5
5
  "license": "UNLICENSED",
6
6
  "scripts": {