@@ -12,8 +12,8 @@ use biome_configuration::{Configuration, FilesConfiguration, LinterConfiguration
1212use biome_console:: Console ;
1313use biome_deserialize:: Merge ;
1414use biome_fs:: FileSystem ;
15- use biome_service:: configuration:: LoadedConfiguration ;
1615use biome_service:: { Workspace , WorkspaceError } ;
16+ use camino:: Utf8PathBuf ;
1717use std:: ffi:: OsString ;
1818
1919pub ( crate ) struct LintCommandPayload {
@@ -45,17 +45,14 @@ impl CommandRunner for LintCommandPayload {
4545
4646 fn merge_configuration (
4747 & mut self ,
48- loaded_configuration : LoadedConfiguration ,
48+ mut loaded_configuration : Configuration ,
49+ _loaded_directory : Option < Utf8PathBuf > ,
50+ _loaded_file : Option < Utf8PathBuf > ,
4951 _fs : & dyn FileSystem ,
5052 _console : & mut dyn Console ,
5153 ) -> Result < Configuration , WorkspaceError > {
52- let LoadedConfiguration {
53- configuration : mut fs_configuration,
54- ..
55- } = loaded_configuration;
56-
57- fs_configuration. merge_with ( Configuration {
58- linter : if fs_configuration
54+ loaded_configuration. merge_with ( Configuration {
55+ linter : if loaded_configuration
5956 . linter
6057 . as_ref ( )
6158 . is_some_and ( LinterConfiguration :: is_enabled)
@@ -73,7 +70,9 @@ impl CommandRunner for LintCommandPayload {
7370 ..Default :: default ( )
7471 } ) ;
7572
76- let css = fs_configuration. css . get_or_insert_with ( Default :: default) ;
73+ let css = loaded_configuration
74+ . css
75+ . get_or_insert_with ( Default :: default) ;
7776 if self . css_linter . is_some ( ) {
7877 css. linter . merge_with ( self . css_linter . clone ( ) ) ;
7978 }
@@ -82,26 +81,28 @@ impl CommandRunner for LintCommandPayload {
8281 }
8382
8483 if self . graphql_linter . is_some ( ) {
85- let graphql = fs_configuration
84+ let graphql = loaded_configuration
8685 . graphql
8786 . get_or_insert_with ( Default :: default) ;
8887 graphql. linter . merge_with ( self . graphql_linter . clone ( ) ) ;
8988 }
9089 if self . javascript_linter . is_some ( ) {
91- let javascript = fs_configuration
90+ let javascript = loaded_configuration
9291 . javascript
9392 . get_or_insert_with ( Default :: default) ;
9493 javascript. linter . merge_with ( self . javascript_linter . clone ( ) ) ;
9594 }
96- let json = fs_configuration. json . get_or_insert_with ( Default :: default) ;
95+ let json = loaded_configuration
96+ . json
97+ . get_or_insert_with ( Default :: default) ;
9798 if self . json_linter . is_some ( ) {
9899 json. linter . merge_with ( self . json_linter . clone ( ) ) ;
99100 }
100101 if self . json_parser . is_some ( ) {
101102 json. parser . merge_with ( self . json_parser . clone ( ) ) ;
102103 }
103104
104- Ok ( fs_configuration )
105+ Ok ( loaded_configuration )
105106 }
106107
107108 fn get_files_to_process (
0 commit comments