Skip to content

Commit

Permalink
replace singles quotes by double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
dbale-altoros committed Aug 7, 2024
1 parent 307fe6b commit d3c76d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rules/naming/imports-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit d3c76d6

Please sign in to comment.