Skip to content

Commit 322270d

Browse files
committed
Doc update
1 parent 5739908 commit 322270d

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

crates/biome_js_analyze/src/lint/correctness/use_import_extensions.rs

+11-7
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,32 @@ declare_lint_rule! {
2525
/// because they do not need to guess which file to resolve.
2626
///
2727
/// The rule checks both static imports (`import ... from "..."`) as well as
28-
/// dynamic imports such as `import()` and `require()`.
28+
/// dynamic imports such as `import(...)` and `require(...)`.
2929
///
3030
/// ## Examples
3131
///
3232
/// ### Invalid
3333
///
34-
/// ```js,expect_diagnostic
34+
/// The following examples assume these imports will resolve to a file with
35+
/// an extension. Imports that don't resolve at all will not trigger a
36+
/// diagnostic.
37+
///
38+
/// ```js
3539
/// import "./foo";
3640
/// ```
37-
/// ```js,expect_diagnostic
41+
/// ```js
3842
/// import "./foo/";
3943
/// ```
40-
/// ```js,expect_diagnostic
44+
/// ```js
4145
/// import "../";
4246
/// ```
43-
/// ```js,expect_diagnostic
47+
/// ```js
4448
/// import "../.";
4549
/// ```
46-
/// ```js,expect_diagnostic
50+
/// ```js
4751
/// import("./foo");
4852
/// ```
49-
/// ```js,expect_diagnostic
53+
/// ```js
5054
/// require("./foo");
5155
/// ```
5256
///

0 commit comments

Comments
 (0)