0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-16 02:26:08 -05:00

refactor(lint): remove dead documentation (#28027)

These docs have already been moved to `deno-docs` repo.
This commit is contained in:
Bartek Iwańczuk 2025-02-10 15:38:11 +01:00 committed by GitHub
parent 94a28f783d
commit d29d367e17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 0 additions and 33 deletions

View file

@ -1,20 +0,0 @@
Enforces specifying explicit references to paths in module specifiers.
Non-explicit specifiers are ambiguous and require probing for the correct file
path on every run, which has a performance overhead.
Note: This lint rule is only active when using `--unstable-sloppy-imports`.
### Invalid:
```typescript
import { add } from "./math/add";
import { ConsoleLogger } from "./loggers";
```
### Valid:
```typescript
import { add } from "./math/add.ts";
import { ConsoleLogger } from "./loggers/index.ts";
```

View file

@ -160,11 +160,6 @@ impl LintRule for NoSloppyImportsRule {
CODE
}
// TODO(bartlomieju): this document needs to be exposed to `https://lint.deno.land`.
// fn docs(&self) -> &'static str {
// include_str!("no_sloppy_imports.md")
// }
fn tags(&self) -> tags::Tags {
&[tags::RECOMMENDED]
}

View file

@ -1,3 +0,0 @@
Enforces using types that are explicit or can be simply inferred.
Read more: https://jsr.io/docs/about-slow-types

View file

@ -27,11 +27,6 @@ impl PackageLintRule for NoSlowTypesRule {
&[tags::JSR]
}
// TODO(bartlomieju): these docs need to be hosted somewhere.
// fn docs(&self) -> &'static str {
// include_str!("no_slow_types.md")
// }
fn help_docs_url(&self) -> Cow<'static, str> {
Cow::Borrowed("https://jsr.io/docs/about-slow-types")
}