Skip to content

Commit

Permalink
doc: minor typos (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabri3l authored and benmosher committed Aug 26, 2016
1 parent 9405444 commit 8da6a5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/rules/prefer-default-export.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# prefer-default-export

When there is only a single export from a module prefer using default export over named export.
When there is only a single export from a module, prefer using default export over named export.

## Rule Details

Expand All @@ -9,7 +9,7 @@ The following patterns are considered warnings:
```javascript
// bad.js

// There is only a single module export and its a named export.
// There is only a single module export and it's a named export.
export const foo = 'foo';

```
Expand All @@ -28,15 +28,15 @@ export default 'bar';
```javascript
// good2.js

// There is more thank one named exports in the module.
// There is more than one named export in the module.
export const foo = 'foo';
export const bar = 'bar';
```

```javascript
// good3.js

// There is more thank one named exports in the module
// There is more than one named export in the module
const foo = 'foo';
const bar = 'bar';
export { foo, bar }
Expand Down

0 comments on commit 8da6a5a

Please sign in to comment.