From d3c76d6b025e60ac06e18027bc9d8f05a6d1ea73 Mon Sep 17 00:00:00 2001 From: dbale-altoros Date: Wed, 7 Aug 2024 12:02:29 -0300 Subject: [PATCH] replace singles quotes by double quotes --- lib/rules/naming/imports-order.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rules/naming/imports-order.js b/lib/rules/naming/imports-order.js index 77807d37..8e298b7e 100644 --- a/lib/rules/naming/imports-order.js +++ b/lib/rules/naming/imports-order.js @@ -91,7 +91,8 @@ class ImportsOrderChecker extends BaseChecker { let currentStart = Math.min(...this.fromContractImports.map((imp) => imp.range[0])) // Prepare replacements changing the range const replacements = this.orderedImports.map((orderedImport) => { - const newText = orderedImport.fullSentence + // replace single quotes by double quotes + const newText = orderedImport.fullSentence.replace(/'/g, '"') const rangeEnd = currentStart + newText.length const replacement = {