Skip to content

Commit 030598d

Browse files
committed
[guide] Add ESlint rules to 'always use const' and 'decriptive variable names' topics
1 parent dc7e7e7 commit 030598d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ Other Style Guides
12991299
## Variables
13001300
13011301
<a name="variables--const"></a><a name="13.1"></a>
1302-
- [13.1](#variables--const) Always use `const` to declare variables. Not doing so will result in global variables. We want to avoid polluting the global namespace. Captain Planet warned us of that.
1302+
- [13.1](#variables--const) Always use `const` to declare variables. Not doing so will result in global variables. We want to avoid polluting the global namespace. Captain Planet warned us of that. eslint: [`no-undef`](http://eslint.org/docs/rules/no-undef) [`prefer-const`](http://eslint.org/docs/rules/prefer-const)
13031303
13041304
```javascript
13051305
// bad
@@ -2327,7 +2327,7 @@ Other Style Guides
23272327
## Naming Conventions
23282328
23292329
<a name="naming--descriptive"></a><a name="22.1"></a>
2330-
- [22.1](#naming--descriptive) Avoid single letter names. Be descriptive with your naming.
2330+
- [22.1](#naming--descriptive) Avoid single letter names. Be descriptive with your naming. eslint: [`id-length`](http://eslint.org/docs/rules/id-length)
23312331
23322332
```javascript
23332333
// bad

0 commit comments

Comments
 (0)