Skip to content

Commit

Permalink
Merge branch 'airbnb:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
0o001 authored Aug 14, 2023
2 parents 81e36bb + cb19177 commit 495b0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1964,7 +1964,7 @@ Other Style Guides
<a name="no-use-before-define"></a>
- [14.5](#no-use-before-define) Variables, classes, and functions should be defined before they can be used. eslint: [`no-use-before-define`](https://eslint.org/docs/latest/rules/no-use-before-define)
> Why? When variables, classes, or functions are declared before being used, it can harm readability since a reader won't know what a thing that's referenced is. It's much clearer for a reader to first encounter the source of a thing (whether imported from another module, or defined in the file) before encountering a use of the thing.
> Why? When variables, classes, or functions are declared after being used, it can harm readability since a reader won't know what a thing that's referenced is. It's much clearer for a reader to first encounter the source of a thing (whether imported from another module, or defined in the file) before encountering a use of the thing.
```javascript
// bad
Expand Down

0 comments on commit 495b0e8

Please sign in to comment.