Commit 322270d 1 parent 5739908 commit 322270d Copy full SHA for 322270d
File tree 1 file changed +11
-7
lines changed
crates/biome_js_analyze/src/lint/correctness
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -25,28 +25,32 @@ declare_lint_rule! {
25
25
/// because they do not need to guess which file to resolve.
26
26
///
27
27
/// 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(... )`.
29
29
///
30
30
/// ## Examples
31
31
///
32
32
/// ### Invalid
33
33
///
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
35
39
/// import "./foo";
36
40
/// ```
37
- /// ```js,expect_diagnostic
41
+ /// ```js
38
42
/// import "./foo/";
39
43
/// ```
40
- /// ```js,expect_diagnostic
44
+ /// ```js
41
45
/// import "../";
42
46
/// ```
43
- /// ```js,expect_diagnostic
47
+ /// ```js
44
48
/// import "../.";
45
49
/// ```
46
- /// ```js,expect_diagnostic
50
+ /// ```js
47
51
/// import("./foo");
48
52
/// ```
49
- /// ```js,expect_diagnostic
53
+ /// ```js
50
54
/// require("./foo");
51
55
/// ```
52
56
///
You can’t perform that action at this time.
0 commit comments