Skip to content

Commit 4539dbc

Browse files
yuezkljharb
authored andcommitted
[guide] remove redundant spaces
1 parent 19701d4 commit 4539dbc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3073,7 +3073,7 @@ Other Style Guides
30733073
- [22.1](#coercion--explicit) Perform type coercion at the beginning of the statement.
30743074
30753075
<a name="coercion--strings"></a><a name="21.2"></a>
3076-
- [22.2](#coercion--strings) Strings: eslint: [`no-new-wrappers`](https://eslint.org/docs/rules/no-new-wrappers)
3076+
- [22.2](#coercion--strings) Strings: eslint: [`no-new-wrappers`](https://eslint.org/docs/rules/no-new-wrappers)
30773077
30783078
```javascript
30793079
// => this.reviewScore = 9;
@@ -3360,7 +3360,7 @@ Other Style Guides
33603360

33613361
> Why? This is an additional tool to assist in situations where the programmer would be unsure if a variable might ever change. UPPERCASE_VARIABLES are letting the programmer know that they can trust the variable (and its properties) not to change.
33623362
- What about all `const` variables? - This is unnecessary, so uppercasing should not be used for constants within a file. It should be used for exported constants however.
3363-
- What about exported objects? - Uppercase at the top level of export (e.g. `EXPORTED_OBJECT.key`) and maintain that all nested properties do not change.
3363+
- What about exported objects? - Uppercase at the top level of export (e.g. `EXPORTED_OBJECT.key`) and maintain that all nested properties do not change.
33643364

33653365
```javascript
33663366
// bad
@@ -3467,7 +3467,7 @@ Other Style Guides
34673467
## Events
34683468

34693469
<a name="events--hash"></a><a name="24.1"></a>
3470-
- [25.1](#events--hash) When attaching data payloads to events (whether DOM events or something more proprietary like Backbone events), pass an object literal (also known as a "hash") instead of a raw value. This allows a subsequent contributor to add more data to the event payload without finding and updating every handler for the event. For example, instead of:
3470+
- [25.1](#events--hash) When attaching data payloads to events (whether DOM events or something more proprietary like Backbone events), pass an object literal (also known as a "hash") instead of a raw value. This allows a subsequent contributor to add more data to the event payload without finding and updating every handler for the event. For example, instead of:
34713471

34723472
```javascript
34733473
// bad
@@ -3721,7 +3721,7 @@ Other Style Guides
37213721

37223722
- [JavaScript: The Good Parts](https://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742) - Douglas Crockford
37233723
- [JavaScript Patterns](https://www.amazon.com/JavaScript-Patterns-Stoyan-Stefanov/dp/0596806752) - Stoyan Stefanov
3724-
- [Pro JavaScript Design Patterns](https://www.amazon.com/JavaScript-Design-Patterns-Recipes-Problem-Solution/dp/159059908X) - Ross Harmes and Dustin Diaz
3724+
- [Pro JavaScript Design Patterns](https://www.amazon.com/JavaScript-Design-Patterns-Recipes-Problem-Solution/dp/159059908X) - Ross Harmes and Dustin Diaz
37253725
- [High Performance Web Sites: Essential Knowledge for Front-End Engineers](https://www.amazon.com/High-Performance-Web-Sites-Essential/dp/0596529309) - Steve Souders
37263726
- [Maintainable JavaScript](https://www.amazon.com/Maintainable-JavaScript-Nicholas-C-Zakas/dp/1449327680) - Nicholas C. Zakas
37273727
- [JavaScript Web Applications](https://www.amazon.com/JavaScript-Web-Applications-Alex-MacCaw/dp/144930351X) - Alex MacCaw

react/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,13 +447,13 @@ We don’t recommend using indexes for keys if the order of items may change.
447447
```jsx
448448
// bad
449449
render() {
450-
const { irrelevantProp, ...relevantProps } = this.props;
450+
const { irrelevantProp, ...relevantProps } = this.props;
451451
return <WrappedComponent {...this.props} />
452452
}
453453
454454
// good
455455
render() {
456-
const { irrelevantProp, ...relevantProps } = this.props;
456+
const { irrelevantProp, ...relevantProps } = this.props;
457457
return <WrappedComponent {...relevantProps} />
458458
}
459459
```

0 commit comments

Comments
 (0)