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
  • Loading branch information
Conaclos committed Jun 11, 2024
1 parent e47b8bc commit db965d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ declare_rule! {
///
/// The rule ignores imports using a protocol such as `node:`, `bun:`, `jsr:`, `https:`.
///
/// To ensure that the TypeScript LSP 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`.
/// This setting is available in Visual Studio Code.
///
/// ## Examples
///
/// ### Invalid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ 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 the TypeScript LSP adds the file extension when it automatically imports a variable,
/// you may set [`javascript.preferences.importModuleSpecifierEnding` and `typescript.preferences.importModuleSpecifierEnding`](https://code.visualstudio.com/updates/v1_24#_preferences-for-auto-imports-and-generated-code) to the desired file extension.
/// This setting is available in Visual Studio Code.
///
/// ## Examples
///
Expand Down

0 comments on commit db965d2

Please sign in to comment.