File tree Expand file tree Collapse file tree 5 files changed +16
-0
lines changed
crates/vite_global_cli/src
snap-tests-global/command-check-help Expand file tree Collapse file tree 5 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -765,6 +765,10 @@ fn delegated_help_doc(command: &str) -> Option<HelpDoc> {
765765 "--no-error-on-unmatched-pattern" ,
766766 "Do not exit with error when pattern is unmatched" ,
767767 ) ,
768+ row(
769+ "--disable-nested-config" ,
770+ "Disable the automatic loading of nested configuration files (lint only)" ,
771+ ) ,
768772 row( "-h, --help" , "Print help" ) ,
769773 ] ,
770774 ) ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ pub(crate) async fn execute_check(
2323 no_fmt : bool ,
2424 no_lint : bool ,
2525 no_error_on_unmatched_pattern : bool ,
26+ disable_nested_config : bool ,
2627 paths : Vec < String > ,
2728 envs : & Arc < FxHashMap < Arc < OsStr > , Arc < OsStr > > > ,
2829 cwd : & AbsolutePathBuf ,
@@ -143,6 +144,9 @@ pub(crate) async fn execute_check(
143144 if suppress_unmatched {
144145 args. push ( "--no-error-on-unmatched-pattern" . to_string ( ) ) ;
145146 }
147+ if disable_nested_config {
148+ args. push ( "--disable-nested-config" . to_string ( ) ) ;
149+ }
146150 if has_paths {
147151 args. extend ( paths. iter ( ) . cloned ( ) ) ;
148152 }
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ async fn execute_direct_subcommand(
6868 no_fmt,
6969 no_lint,
7070 no_error_on_unmatched_pattern,
71+ disable_nested_config,
7172 paths,
7273 } => {
7374 return crate :: check:: execute_check (
@@ -76,6 +77,7 @@ async fn execute_direct_subcommand(
7677 no_fmt,
7778 no_lint,
7879 no_error_on_unmatched_pattern,
80+ disable_nested_config,
7981 paths,
8082 & envs,
8183 cwd,
Original file line number Diff line number Diff line change @@ -96,6 +96,9 @@ pub enum SynthesizableSubcommand {
9696 /// Do not exit with error when pattern is unmatched
9797 #[ arg( long = "no-error-on-unmatched-pattern" ) ]
9898 no_error_on_unmatched_pattern : bool ,
99+ /// Disable the automatic loading of nested configuration files (forwarded to lint; ignored by fmt)
100+ #[ arg( long) ]
101+ disable_nested_config : bool ,
99102 /// File paths to check (passed through to fmt and lint)
100103 #[ arg( trailing_var_arg = true ) ]
101104 paths : Vec < String > ,
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ Options:
1010 --no-fmt Skip format check
1111 --no-lint Skip lint check
1212 --no-error-on-unmatched-pattern Do not exit with error when pattern is unmatched
13+ --disable-nested-config Disable the automatic loading of nested configuration files (lint only)
1314 -h, --help Print help
1415
1516Examples:
@@ -32,6 +33,7 @@ Options:
3233 --no-fmt Skip format check
3334 --no-lint Skip lint check
3435 --no-error-on-unmatched-pattern Do not exit with error when pattern is unmatched
36+ --disable-nested-config Disable the automatic loading of nested configuration files (lint only)
3537 -h, --help Print help
3638
3739Examples:
@@ -54,6 +56,7 @@ Options:
5456 --no-fmt Skip format check
5557 --no-lint Skip lint check
5658 --no-error-on-unmatched-pattern Do not exit with error when pattern is unmatched
59+ --disable-nested-config Disable the automatic loading of nested configuration files (lint only)
5760 -h, --help Print help
5861
5962Examples:
You can’t perform that action at this time.
0 commit comments