Skip to content

Commit da9b3c9

Browse files
committed
chore: putout: actions: lint ☘️
1 parent 8e7e914 commit da9b3c9

File tree

1 file changed

+3
-0
lines changed
  • packages/operator-jsx/lib

1 file changed

+3
-0
lines changed

packages/operator-jsx/lib/jsx.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function getAttributeValue(path, attributeName) {
5353

5454
return attribute.value.value;
5555
}
56+
5657
module.exports.addAttributeValue = addAttributeValue;
5758
function addAttributeValue(path, name, value) {
5859
const attributeNode = getAttributeNode(path, name);
@@ -62,6 +63,7 @@ function addAttributeValue(path, name, value) {
6263

6364
setLiteralValue(attributeNode.value, `${attributeNode.value.value} ${value}`);
6465
}
66+
6567
module.exports.removeAttributeValue = removeAttributeValue;
6668
function removeAttributeValue(path, name, attributeValue) {
6769
if (!path)
@@ -75,6 +77,7 @@ function removeAttributeValue(path, name, attributeValue) {
7577
if (value.includes(attributeValue))
7678
setLiteralValue(classAttribute.value, value.replace(RegExp(`\\s?${attributeValue}`), ''));
7779
}
80+
7881
module.exports.setAttributeValue = (node, name, value) => {
7982
const attributeNode = getAttributeNode(node, name);
8083

0 commit comments

Comments
 (0)