@@ -2,10 +2,11 @@ use rustc_hash::FxHashSet;
22
33use oxc_formatter:: {
44 ArrowParentheses , AttributePosition , BracketSameLine , BracketSpacing , CustomGroupDefinition ,
5- EmbeddedLanguageFormatting , Expand , FormatOptions , GroupEntry , ImportModifier , ImportSelector ,
6- IndentStyle , IndentWidth , LineEnding , LineWidth , QuoteProperties , QuoteStyle , Semicolons ,
7- SortImportsOptions , SortOrder , SortTailwindcssOptions , TrailingCommas ,
5+ EmbeddedLanguageFormatting , Expand , GroupEntry , ImportModifier , ImportSelector ,
6+ JsFormatOptions , QuoteProperties , QuoteStyle , Semicolons , SortImportsOptions , SortOrder ,
7+ SortTailwindcssOptions , TrailingCommas ,
88} ;
9+ use oxc_formatter_core:: { IndentStyle , IndentWidth , LineEnding , LineWidth } ;
910
1011use super :: super :: oxfmtrc:: {
1112 ArrowParensConfig , CustomGroupItemConfig , EmbeddedLanguageFormattingConfig , EndOfLineConfig ,
@@ -14,18 +15,18 @@ use super::super::oxfmtrc::{
1415 SortTailwindcssUserConfig , TrailingCommaConfig ,
1516} ;
1617
17- /// Convert `FormatConfig` into validated `FormatOptions ` for `oxc_formatter`.
18+ /// Convert `FormatConfig` into validated `JsFormatOptions ` for `oxc_formatter`.
1819///
1920/// # Errors
2021/// Returns error if any option value is invalid
21- pub fn to_oxc_formatter ( config : & FormatConfig ) -> Result < FormatOptions , String > {
22+ pub fn to_oxc_formatter ( config : & FormatConfig ) -> Result < JsFormatOptions , String > {
2223 // NOTE: Not yet supported options:
2324 // [Prettier] experimentalOperatorPosition: "start" | "end"
2425 // [Prettier] experimentalTernaries: boolean
2526 // These are rejected at deserialize time so they never reach here.
2627
27- // All values are based on defaults from `FormatOptions ::default()`
28- let mut format_options = FormatOptions :: default ( ) ;
28+ // All values are based on defaults from `JsFormatOptions ::default()`
29+ let mut format_options = JsFormatOptions :: default ( ) ;
2930
3031 // [Prettier] useTabs: boolean
3132 if let Some ( use_tabs) = config. use_tabs {
0 commit comments