Skip to content

Commit

Permalink
Minor docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya committed Apr 5, 2017
1 parent 85b0bd7 commit 4857434
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/develop/custom-rules/performance-tips.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: TSLint performance tips
layout: page
permalink: "/develop/custom-rules/performance"
permalink: "/develop/custom-rules/performance-tips"
---

As TSLint has matured, we have developed some best practices for making rules run faster. TSLint 5.0 was a particularly
Expand Down
2 changes: 1 addition & 1 deletion docs/develop/custom-rules/walker-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class NoMagicNumbersWalker extends Lint.AbstractWalker<Set<string>> {
}
```

## Migrating from `RuleWalker` to `AbstractWalker`
## Migrating from RuleWalker to AbstractWalker

The main difference between `RuleWalker` and `AbstractWalker` is that you need to implement the AST recursion yourself. But why would you want to do that?
__Performance!__ `RuleWalker` wants to be "one walker to rule them all" (pun intended). It's easy to use but that convenience
Expand Down
4 changes: 2 additions & 2 deletions docs/usage/configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ __`tslint:all`__ turns on all rules to their strictest settings. This will use t
### Custom rules

If TSLint's core rules don't have all the lint checks you're looking for,
you may [write your own custom rules][0] or use custom rules that others have developed.
you may [write your own custom rules][2] or use custom rules that others have developed.

Some commonly used custom rule packages in the TSLint community are listed in the
[README](https://github.com/palantir/tslint/blob/master/README.md).

[0]: {{site.baseurl | append: "/usage/cli"}}
[1]: {{site.baseurl | append: "/usage/third-party-tools"}}
[2]: {{site.baseurl | append: "/usage/custom-rules"}}
[2]: {{site.baseurl | append: "/develop/custom-rules"}}
[3]: {{site.baseurl | append: "/rules"}}
[rule-ban]: {{site.baseurl | append: "/rules/ban"}}
[rule-import-blacklist]: {{site.baseurl | append: "/rules/import-blacklist"}}
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/type-checking/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ layout: page
permalink: /usage/type-checking/
---

#### Type Checking
#### Semantic lint rules

Some TSLint rules go further than linting code syntax. Semantic rules use the compiler's program APIs to inspect static types and validate code patterns.

Expand Down

0 comments on commit 4857434

Please sign in to comment.