Function format_tsx
Source pub fn format_tsx(input: &str) -> String
Expand description
Formats TypeScript JSX (.tsx) matching VS Code Prettier 3.7.4 (singleQuote: true, jsxSingleQuote: false, semi: true, tabWidth: 2).
§Arguments
&str - Raw TSX source text.
§Returns
String - Formatted TSX text, or unchanged input if syntax errors occur.