Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
[guide] js -> javascript for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
vsemozhetbyt authored and ljharb committed Jan 18, 2017
1 parent 40d5797 commit d8c3048
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ Other Style Guides
> Why? It shows clearly where the function starts and ends.
```js
```javascript
// bad
['get', 'post', 'put'].map(httpMethod => Object.prototype.hasOwnProperty.call(
httpMagicObjectWithAVeryLongName,
Expand All @@ -929,7 +929,7 @@ Other Style Guides
> Why? Less visual clutter.
```js
```javascript
// bad
[1, 2, 3].map((x) => x * x);

Expand Down Expand Up @@ -957,7 +957,7 @@ Other Style Guides
<a name="arrows--confusing"></a><a name="8.5"></a>
- [8.5](#arrows--confusing) Avoid confusing arrow function syntax (`=>`) with comparison operators (`<=`, `>=`). eslint: [`no-confusing-arrow`](http://eslint.org/docs/rules/no-confusing-arrow)
```js
```javascript
// bad
const itemHeight = item => item.height > 256 ? item.largeSize : item.smallSize;

Expand Down Expand Up @@ -1351,7 +1351,7 @@ Other Style Guides
> Why? `function` and `*` are part of the same conceptual keyword - `*` is not a modifier for `function`, `function*` is a unique construct, different from `function`.
```js
```javascript
// bad
function * foo() {
// ...
Expand Down

0 comments on commit d8c3048

Please sign in to comment.