File tree 3 files changed +14
-11
lines changed
biome_js_analyze/src/lint/correctness
3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ declare_lint_rule! {
51
51
/// "checkShorthandFragments": true
52
52
/// }
53
53
/// }
54
- /// ```
54
+ /// ```
55
55
/// ```jsx,expect_diagnostic,use_options
56
56
/// data.map((x) => <>{x}</>);
57
57
/// ```
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ impl TraversalContext for ScanContext<'_> {
270
270
if self . scan_kind . is_known_files ( ) {
271
271
( path. is_ignore ( ) || path. is_config ( ) || path. is_manifest ( ) ) && !path. is_dependency ( )
272
272
} else if path. is_dependency ( ) {
273
- path. is_manifest ( ) || path . is_type_declaration ( )
273
+ path. is_type_declaration ( )
274
274
} else {
275
275
DocumentFileSource :: try_from_path ( path) . is_ok ( ) || path. is_ignore ( )
276
276
}
Original file line number Diff line number Diff line change @@ -50,15 +50,18 @@ fn test_scanner_only_loads_type_definitions_from_node_modules() {
50
50
} )
51
51
. unwrap ( ) ;
52
52
53
- let manifest_result = workspace. get_file_content ( GetFileContentParams {
54
- project_key,
55
- path : BiomePath :: new ( format ! ( "{fixtures_path}/node_modules/shared/package.json" ) ) ,
56
- } ) ;
57
-
58
- assert ! (
59
- manifest_result. is_ok_and( |result| !result. is_empty( ) ) ,
60
- "package.json should be loaded"
61
- ) ;
53
+ // FIXME: We should load manifests again in order to actually resolve
54
+ // type definitions, but last time we tried we ran into performance
55
+ // issues, and a reoccurrence of panics inside `node_semver` (#5829).
56
+ //let manifest_result = workspace.get_file_content(GetFileContentParams {
57
+ // project_key,
58
+ // path: BiomePath::new(format!("{fixtures_path}/node_modules/shared/package.json")),
59
+ //});
60
+ //
61
+ //assert!(
62
+ // manifest_result.is_ok_and(|result| !result.is_empty()),
63
+ // "package.json should be loaded"
64
+ //);
62
65
63
66
let d_mts_result = workspace. get_file_content ( GetFileContentParams {
64
67
project_key,
You can’t perform that action at this time.
0 commit comments