From e53b8b5feaa2736fa86957373b4c7a6c9fc34a83 Mon Sep 17 00:00:00 2001 From: Erick Almeida Date: Wed, 18 Sep 2024 23:41:02 -0300 Subject: [PATCH] refactor: organize import order on transformation rules --- .../rules/accessibility-element-modifier-remover.ts | 6 +++--- .../rules/accessibility-label-modifier-remover.ts | 6 +++--- .../rules/standard-font-to-static-size-replacer.ts | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/transforming/rules/accessibility-element-modifier-remover.ts b/src/transforming/rules/accessibility-element-modifier-remover.ts index 9e85cf3..5e25a0d 100644 --- a/src/transforming/rules/accessibility-element-modifier-remover.ts +++ b/src/transforming/rules/accessibility-element-modifier-remover.ts @@ -1,7 +1,7 @@ -import { buildRemoveModifierGFT } from '../builders/get-fault-transformation-builders.js'; -import { buildModifierOnAnyViewGTN } from '../builders/get-transformable-nodes-builders.js'; -import { buildModifierOnAnyViewQuery } from '../builders/query-builders.js'; import { FaultTransformationRule } from '../fault-transformation-rule.js'; +import { buildModifierOnAnyViewQuery } from '../builders/query-builders.js'; +import { buildModifierOnAnyViewGTN } from '../builders/get-transformable-nodes-builders.js'; +import { buildRemoveModifierGFT } from '../builders/get-fault-transformation-builders.js'; /** * This rule matches to a SwiftUI view with the `.accessibilityElement(...)` modifier, diff --git a/src/transforming/rules/accessibility-label-modifier-remover.ts b/src/transforming/rules/accessibility-label-modifier-remover.ts index 14f843b..e9cac99 100644 --- a/src/transforming/rules/accessibility-label-modifier-remover.ts +++ b/src/transforming/rules/accessibility-label-modifier-remover.ts @@ -1,7 +1,7 @@ -import { buildRemoveModifierGFT } from '../builders/get-fault-transformation-builders.js'; -import { buildModifierOnAnyViewGTN } from '../builders/get-transformable-nodes-builders.js'; -import { buildModifierOnAnyViewQuery } from '../builders/query-builders.js'; import { FaultTransformationRule } from '../fault-transformation-rule.js'; +import { buildModifierOnAnyViewQuery } from '../builders/query-builders.js'; +import { buildModifierOnAnyViewGTN } from '../builders/get-transformable-nodes-builders.js'; +import { buildRemoveModifierGFT } from '../builders/get-fault-transformation-builders.js'; /** * This rule matches to a SwiftUI view element with a `.accessibilityLabel` modifier, which diff --git a/src/transforming/rules/standard-font-to-static-size-replacer.ts b/src/transforming/rules/standard-font-to-static-size-replacer.ts index 93b4a81..878a9e0 100644 --- a/src/transforming/rules/standard-font-to-static-size-replacer.ts +++ b/src/transforming/rules/standard-font-to-static-size-replacer.ts @@ -1,8 +1,8 @@ import { SyntaxNode } from 'web-tree-sitter'; -import { buildReplaceNodeContentWithCallbackResultGFT } from '../builders/get-fault-transformation-builders.js'; -import { buildCallbackResultFromCaptureNameGTN } from '../builders/get-transformable-nodes-builders.js'; -import { buildModifierOnAnyViewQuery } from '../builders/query-builders.js'; import { FaultTransformationRule } from '../fault-transformation-rule.js'; +import { buildModifierOnAnyViewQuery } from '../builders/query-builders.js'; +import { buildCallbackResultFromCaptureNameGTN } from '../builders/get-transformable-nodes-builders.js'; +import { buildReplaceNodeContentWithCallbackResultGFT } from '../builders/get-fault-transformation-builders.js'; import { getModifierArgumentsNodeFromModifierNameNode, stripParentheses,