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:
parent
94a28f783d
commit
d29d367e17
4 changed files with 0 additions and 33 deletions
|
@ -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";
|
||||
```
|
|
@ -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]
|
||||
}
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
Enforces using types that are explicit or can be simply inferred.
|
||||
|
||||
Read more: https://jsr.io/docs/about-slow-types
|
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue