@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.
- package/dist/index.js +2 -1
- 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
|
|
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
|
});
|