mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 12:48:03 -05:00
Fixed capitalization and comment spacing
Fixed line 1219 to have a lowercase 'a' to be consistent with the style guide. Fixed line 1831 to only have one space between the // and the =>
This commit is contained in:
@@ -1216,7 +1216,7 @@ Other Style Guides
|
||||
```javascript
|
||||
if ([0] && []) {
|
||||
// true
|
||||
// An array (even an empty one) is an object, objects will evaluate to true
|
||||
// an array (even an empty one) is an object, objects will evaluate to true
|
||||
}
|
||||
```
|
||||
|
||||
@@ -1828,7 +1828,7 @@ Other Style Guides
|
||||
- [21.2](#21.2) <a name='21.2'></a> Strings:
|
||||
|
||||
```javascript
|
||||
// => this.reviewScore = 9;
|
||||
// => this.reviewScore = 9;
|
||||
|
||||
// bad
|
||||
const totalScore = this.reviewScore + '';
|
||||
|
||||
Reference in New Issue
Block a user