@@ -6,19 +6,15 @@ use crate::execute::VcsTargeted;
6
6
use crate :: {
7
7
execute_mode, setup_cli_subscriber, CliDiagnostic , CliSession , Execution , TraversalMode ,
8
8
} ;
9
- use biome_configuration:: css:: PartialCssLinter ;
10
- use biome_configuration:: javascript:: PartialJavascriptLinter ;
11
- use biome_configuration:: json:: PartialJsonLinter ;
9
+ use biome_configuration:: css:: CssLinterConfiguration ;
10
+ use biome_configuration:: graphql:: GraphqlLinterConfiguration ;
11
+ use biome_configuration:: javascript:: JsLinterConfiguration ;
12
+ use biome_configuration:: json:: JsonLinterConfiguration ;
12
13
use biome_configuration:: linter:: RuleSelector ;
13
- use biome_configuration:: vcs:: PartialVcsConfiguration ;
14
- use biome_configuration:: {
15
- PartialConfiguration , PartialFilesConfiguration , PartialGraphqlLinter ,
16
- PartialLinterConfiguration ,
17
- } ;
14
+ use biome_configuration:: vcs:: VcsConfiguration ;
15
+ use biome_configuration:: { Configuration , FilesConfiguration , LinterConfiguration } ;
18
16
use biome_deserialize:: Merge ;
19
- use biome_service:: configuration:: {
20
- load_configuration, LoadedConfiguration , PartialConfigurationExt ,
21
- } ;
17
+ use biome_service:: configuration:: { load_configuration, ConfigurationExt , LoadedConfiguration } ;
22
18
use biome_service:: workspace:: { RegisterProjectFolderParams , UpdateSettingsParams } ;
23
19
use std:: ffi:: OsString ;
24
20
@@ -31,20 +27,20 @@ pub(crate) struct LintCommandPayload {
31
27
pub ( crate ) fix : bool ,
32
28
pub ( crate ) unsafe_ : bool ,
33
29
pub ( crate ) cli_options : CliOptions ,
34
- pub ( crate ) linter_configuration : Option < PartialLinterConfiguration > ,
35
- pub ( crate ) vcs_configuration : Option < PartialVcsConfiguration > ,
36
- pub ( crate ) files_configuration : Option < PartialFilesConfiguration > ,
30
+ pub ( crate ) linter_configuration : Option < LinterConfiguration > ,
31
+ pub ( crate ) vcs_configuration : Option < VcsConfiguration > ,
32
+ pub ( crate ) files_configuration : Option < FilesConfiguration > ,
37
33
pub ( crate ) paths : Vec < OsString > ,
38
34
pub ( crate ) only : Vec < RuleSelector > ,
39
35
pub ( crate ) skip : Vec < RuleSelector > ,
40
36
pub ( crate ) stdin_file_path : Option < String > ,
41
37
pub ( crate ) staged : bool ,
42
38
pub ( crate ) changed : bool ,
43
39
pub ( crate ) since : Option < String > ,
44
- pub ( crate ) javascript_linter : Option < PartialJavascriptLinter > ,
45
- pub ( crate ) json_linter : Option < PartialJsonLinter > ,
46
- pub ( crate ) css_linter : Option < PartialCssLinter > ,
47
- pub ( crate ) graphql_linter : Option < PartialGraphqlLinter > ,
40
+ pub ( crate ) javascript_linter : Option < JsLinterConfiguration > ,
41
+ pub ( crate ) json_linter : Option < JsonLinterConfiguration > ,
42
+ pub ( crate ) css_linter : Option < CssLinterConfiguration > ,
43
+ pub ( crate ) graphql_linter : Option < GraphqlLinterConfiguration > ,
48
44
}
49
45
50
46
/// Handler for the "lint" command of the Biome CLI
@@ -98,11 +94,11 @@ pub(crate) fn lint(session: CliSession, payload: LintCommandPayload) -> Result<(
98
94
directory_path : configuration_path,
99
95
..
100
96
} = loaded_configuration;
101
- fs_configuration. merge_with ( PartialConfiguration {
97
+ fs_configuration. merge_with ( Configuration {
102
98
linter : if fs_configuration
103
99
. linter
104
100
. as_ref ( )
105
- . is_some_and ( PartialLinterConfiguration :: is_disabled)
101
+ . is_some_and ( LinterConfiguration :: is_disabled)
106
102
{
107
103
None
108
104
} else {
0 commit comments