Skip to content

Commit

Permalink
docs(noUndeclaredDependencies,useImportExtensions): add note about LS…
Browse files Browse the repository at this point in the history
…P configs (#3173)
  • Loading branch information
Conaclos committed Jun 11, 2024
1 parent e47b8bc commit 72473fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ declare_rule! {
///
/// The rule ignores imports using a protocol such as `node:`, `bun:`, `jsr:`, `https:`.
///
/// To ensure that Visual Studio Code uses relative imports when it automatically imports a variable,
/// you may set [`typescript.preferences.importModuleSpecifier`](https://code.visualstudio.com/updates/v1_24#_preferences-for-auto-imports-and-generated-code) to `relative`.
///
/// ## Examples
///
/// ### Invalid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ declare_rule! {
/// Tooling also benefits from explicit file extensions, because they do not need to guess which
/// file to resolve.
///
/// Rule checks static imports and dynamic imports calls such as `import()` and `require()`.
/// The rule checks static imports and dynamic imports calls such as `import()` and `require()`.
///
/// To ensure that Visual Studio Code adds the file extension when it automatically imports a variable,
/// you may set [`javascript.preferences.importModuleSpecifierEnding` and `typescript.preferences.importModuleSpecifierEnding`](https://code.visualstudio.com/docs/getstarted/settings) to the desired file extension.
///
/// ## Examples
///
Expand Down

0 comments on commit 72473fe

Please sign in to comment.