Skip to content

Commit 0c8e6f4

Browse files
committed
docs update
1 parent aaa948d commit 0c8e6f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/no-else-after-return.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## no-else-after-return
22

3-
Works like [no-else-return from eslint](http://eslint.org/docs/rules/no-else-return).
3+
Works like [no-else-return from eslint](http://eslint.org/docs/rules/no-else-return). This rule can automatically fix errors.
44

55
> If an if block contains a return statement, the else block becomes unnecessary. Its contents can be placed outside of the block.
66

docs/no-unnecessary-else.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## no-unnecessary-else
22

3-
If an if block contains a return, throw, continue or break statement, the else block becomes unnecessary. Its contents can be placed outside of the block.
3+
If an if block contains a return, throw, continue or break statement, the else block becomes unnecessary. Its contents can be placed outside of the block. This rule can automatically fix errors.
44

55
This is basically [no-else-after-return](./no-else-after-return.md) with additional checks including `throw`, `continue` and `break`. Replace `no-else-after-return` with `no-unnecessary-else` in your `tslint.json`.

0 commit comments

Comments
 (0)