Skip to content

doc: minor typos #523

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 26, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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