Skip to content

Commit 05ad9c6

Browse files
committed
avoid standalone @
1 parent 4c50ddc commit 05ad9c6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,18 @@ Array.prototype.slice # No
422422

423423
Prefer `@property` over `this.property`.
424424

425+
```coffeescript
426+
return @property # Yes
427+
return this.property # No
428+
```
429+
430+
However, avoid the use of **standalone** `@`:
431+
432+
```coffeescript
433+
return this # Yes
434+
return @ # No
435+
```
436+
425437
Avoid `return` where not required, unless the explicit return increases clarity.
426438

427439
Use splats (`...`) when working with functions that accept variable numbers of arguments:

0 commit comments

Comments
 (0)