Skip to content

Commit 8da6a5a

Browse files
Gabri3lbenmosher
authored andcommitted
doc: minor typos (#523)
1 parent 9405444 commit 8da6a5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/rules/prefer-default-export.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# prefer-default-export
22

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

55
## Rule Details
66

@@ -9,7 +9,7 @@ The following patterns are considered warnings:
99
```javascript
1010
// bad.js
1111

12-
// There is only a single module export and its a named export.
12+
// There is only a single module export and it's a named export.
1313
export const foo = 'foo';
1414

1515
```
@@ -28,15 +28,15 @@ export default 'bar';
2828
```javascript
2929
// good2.js
3030

31-
// There is more thank one named exports in the module.
31+
// There is more than one named export in the module.
3232
export const foo = 'foo';
3333
export const bar = 'bar';
3434
```
3535

3636
```javascript
3737
// good3.js
3838

39-
// There is more thank one named exports in the module
39+
// There is more than one named export in the module
4040
const foo = 'foo';
4141
const bar = 'bar';
4242
export { foo, bar }

0 commit comments

Comments
 (0)