Skip to content

Commit

Permalink
feat: Remove LintRule::docs() (#1381)
Browse files Browse the repository at this point in the history
This commit removes LintRule::docs() method and consequently all .md files
with documentation for the lint rules.

These docs now live at https://github.com/denoland/docs/tree/main/lint/rules.

Some code from dlint binary that prints these docs have been removed too
and instead points to relevant https://docs.deno.com/lint/rules/ pages.

This will allow to save about ~400Kb from the deno binary size.
  • Loading branch information
bartlomieju authored Dec 31, 2024
1 parent b4994da commit ee5b589
Show file tree
Hide file tree
Showing 252 changed files with 10 additions and 5,058 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ name = "deno_lint"

[[example]]
name = "dlint"
required-features = ["docs"]
test = true

[features]
default = []
docs = []

[dependencies]
deno_ast = { version = "0.44.0", features = ["scopes", "transforms", "utils", "visit", "view", "react"] }
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ which provides programmatic API as well as Webpack loader for `deno_lint`.

```shell
# Build standalone binary
$ cargo build --example dlint --features="docs"
$ cargo build --example dlint

$ ./target/debug/examples/dlint --help

Expand Down
80 changes: 0 additions & 80 deletions docs/rules/adjacent_overload_signatures.md

This file was deleted.

39 changes: 0 additions & 39 deletions docs/rules/ban_ts_comment.md

This file was deleted.

42 changes: 0 additions & 42 deletions docs/rules/ban_types.md

This file was deleted.

35 changes: 0 additions & 35 deletions docs/rules/ban_unknown_rule_code.md

This file was deleted.

18 changes: 0 additions & 18 deletions docs/rules/ban_untagged_ignore.md

This file was deleted.

44 changes: 0 additions & 44 deletions docs/rules/ban_untagged_todo.md

This file was deleted.

25 changes: 0 additions & 25 deletions docs/rules/ban_unused_ignore.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs/rules/button_has_type.md

This file was deleted.

Loading

0 comments on commit ee5b589

Please sign in to comment.