@glideapps/prettier-plugin-glide-tailwind
Advanced tools
Comparing version 3.1.2 to 3.1.3
@@ -14,3 +14,4 @@ "use strict"; | ||
(node.value.type === "StringLiteral" || node.value.type === "Literal")) { | ||
const indentString = support_1.getIndentationAmount(node.name.loc.start.column); | ||
// console.log(node); | ||
const indentString = support_1.getIndentationAmount(node.value.loc.start.column); | ||
const indentedNewLine = `\n${indentString}`; | ||
@@ -17,0 +18,0 @@ const rawValue = node.value.value; |
@@ -17,3 +17,2 @@ "use strict"; | ||
// grabs line of code, column then divides by fixed value of 4, where 4 is number of spaces | ||
// the additional +1 is to indent it below the child | ||
const indentString = support_1.getIndentationAmount(node.loc.start.column); | ||
@@ -20,0 +19,0 @@ const indentedNewLine = `\n${indentString}`; |
@@ -6,3 +6,4 @@ "use strict"; | ||
// TODO: Smarter things to do here would be to grab the ENV value from the editor indent | ||
const amountToIndent = Math.floor(columnNumber / exports.NUM_OF_SPACES); | ||
// columns are 1 based | ||
const amountToIndent = Math.floor((columnNumber - 1) / exports.NUM_OF_SPACES); | ||
let resultString = ""; | ||
@@ -9,0 +10,0 @@ for (let i = 0; i < amountToIndent; i++) { |
{ | ||
"name": "@glideapps/prettier-plugin-glide-tailwind", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "Formatting and sorting for glide tailwind classes", | ||
@@ -5,0 +5,0 @@ "author": "Original author - Ari Seyhun | Modified by Bry Nguyen", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1152
86182