Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(noUndeclaredDependencies,useImportExtensions): add note about LSP configs #3173

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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