diff --git a/eslint.config.js b/eslint.config.js index 033a86e4..53b7e435 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -8,7 +8,7 @@ import htmlParser from "@html-eslint/parser"; import customRules from "./eslint-rules/index.js"; export default tseslint.config( - { ignores: ["dist", "android/app/build/**", "android/app/src/main/assets/**"] }, + { ignores: ["dist"] }, { extends: [js.configs.recommended, ...tseslint.configs.recommended], files: ["**/*.{ts,tsx}"], @@ -40,13 +40,18 @@ export default tseslint.config( "ignoreRestSiblings": true, }, ], - "indent": ["warn", 2], + "indent": [ + "warn", + 2, + { SwitchCase: 1 }, + ], "no-tabs": "warn", "custom/no-placeholder-comments": "error", "no-warning-comments": [ "error", { terms: ["fixme"] }, ], + "no-control-regex": "off", // Allow ANSI escape sequences in regex }, }, { diff --git a/src/components/AIMessageItem.tsx b/src/components/AIMessageItem.tsx index 2287ac82..952addbb 100644 --- a/src/components/AIMessageItem.tsx +++ b/src/components/AIMessageItem.tsx @@ -69,8 +69,8 @@ export const AIMessageItem = memo(({ case 'text_editor_view': { const title = args.path ? (args.start_line || args.end_line - ? `Viewed ${args.path} (lines ${args.start_line || 1}-${args.end_line || 'end'})` - : `Viewed ${args.path}`) + ? `Viewed ${args.path} (lines ${args.start_line || 1}-${args.end_line || 'end'})` + : `Viewed ${args.path}`) : 'Viewed File'; return { icon: Eye, title }; } diff --git a/src/components/CreditsDialog.tsx b/src/components/CreditsDialog.tsx index a9ac5295..15823432 100644 --- a/src/components/CreditsDialog.tsx +++ b/src/components/CreditsDialog.tsx @@ -434,61 +434,61 @@ export function CreditsDialog({ open, onOpenChange, provider }: CreditsDialogPro
{/* Add Credits Form - Fixed size section */}
-
-
- setAmount(Number(e.target.value))} - placeholder="Enter amount" - className="text-center text-lg font-medium" - /> -
- {PRESET_AMOUNTS.map((preset) => ( - - ))} + + ))} +
+
-
-
-
- - setPaymentMethod(value)} className="w-full"> - - - +
+ + setPaymentMethod(value)} className="w-full"> + + + Credit Card - - - + + + Lightning - - - -
+
+
+
+
- +
@@ -521,65 +521,65 @@ export function CreditsDialog({ open, onOpenChange, provider }: CreditsDialogPro ) : (
{payments.map((payment) => ( -
-
-
- {getStatusIcon(payment.status)} - - {payment.method === 'stripe' ? 'Credit Card' : 'Lightning'} - - - {payment.status} - -
-
-

{formatCurrency(payment.amount)}

- {payment.fee > 0 && ( -

+

+
+
+ {getStatusIcon(payment.status)} + + {payment.method === 'stripe' ? 'Credit Card' : 'Lightning'} + + + {payment.status} + +
+
+

{formatCurrency(payment.amount)}

+ {payment.fee > 0 && ( +

+{formatCurrency(payment.fee)} -

- )} -
-
+

+ )} +
+
-
- {formatDate(payment.created_at)} - {payment.status === 'pending' && ( -
- - {payment.url && ( - +
+ {formatDate(payment.created_at)} + {payment.status === 'pending' && ( +
+ + {payment.url && ( + + )} +
)}
- )} -
-
+
))}
)} diff --git a/src/components/Shakespeare/ChatPane.tsx b/src/components/Shakespeare/ChatPane.tsx index 4b743237..78021f31 100644 --- a/src/components/Shakespeare/ChatPane.tsx +++ b/src/components/Shakespeare/ChatPane.tsx @@ -674,7 +674,7 @@ export const ChatPane = forwardRef(({ {/* Chat Input Container */}
(({ !isConfigured ? t('askToAddFeatures') : providerModel.trim() - ? t('askToAddFeatures') - : t('selectModelFirst') + ? t('askToAddFeatures') + : t('selectModelFirst') } className="flex-1 resize-none border-0 bg-transparent px-4 py-3 text-sm focus-visible:ring-0 focus-visible:ring-offset-0 placeholder:text-muted-foreground" disabled={isLoading || (isConfigured && !providerModel.trim())} diff --git a/src/components/Shakespeare/FileTree.tsx b/src/components/Shakespeare/FileTree.tsx index e6f50651..af5f6877 100644 --- a/src/components/Shakespeare/FileTree.tsx +++ b/src/components/Shakespeare/FileTree.tsx @@ -30,7 +30,7 @@ export function FileTree({ projectId, onFileSelect, selectedFile }: FileTreeProp const [gitignoreFilter, setGitignoreFilter] = useState<{ isIgnored: (path: string) => boolean; shouldShow: (path: string) => boolean; - } | null>(null); + } | null>(null); const [searchTerm, setSearchTerm] = useState(''); const [isSearching, setIsSearching] = useState(false); const { fs } = useFS(); diff --git a/src/components/Shakespeare/PreviewPane.tsx b/src/components/Shakespeare/PreviewPane.tsx index 5843dd8b..e8dc978b 100644 --- a/src/components/Shakespeare/PreviewPane.tsx +++ b/src/components/Shakespeare/PreviewPane.tsx @@ -578,9 +578,9 @@ export function PreviewPane({ projectId, activeTab, onToggleView, projectName, o
{msg.message}
diff --git a/src/components/WalletModal.tsx b/src/components/WalletModal.tsx index 7643ea5d..d6db0235 100644 --- a/src/components/WalletModal.tsx +++ b/src/components/WalletModal.tsx @@ -41,29 +41,29 @@ const AddWalletContent = forwardRef void; connectionUri: string; setConnectionUri: (value: string) => void; -}>(({ alias, setAlias, connectionUri, setConnectionUri }, ref) => ( -
-
- - setAlias(e.target.value)} - /> -
-
- -