Skip to content

Commit 93609f2

Browse files
committed
fix wording, spelling, and indentation in docs file for prefer-default-export
1 parent c8b6020 commit 93609f2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/rules/prefer-default-export.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ How to setup config file for this rule:
2727

2828
```javascript
2929
// you can manually specify it
30-
"rules":{
30+
"rules": {
3131
"import/prefer-default-export": [
3232
( "off" | "warn" | "error" ),
3333
{ "target": "single" }
3434
]
3535
}
3636

3737
// config setup below will also work
38-
"rules":{
38+
"rules": {
3939
"import/prefer-default-export": "off" | "warn" | "error"
4040
}
4141
```
@@ -95,13 +95,13 @@ export * from './other-module'
9595

9696
#### any
9797

98-
**Definition**: any exporting file must contain default export.
98+
**Definition**: any exporting file must contain a default export.
9999

100100
How to setup config file for this rule:
101101

102102
```javascript
103-
// you can manually specify it
104-
"rules":{
103+
// you have to manually specify it
104+
"rules": {
105105
"import/prefer-default-export": [
106106
( "off" | "warn" | "error" ),
107107
{ "target": "any" }
@@ -110,7 +110,7 @@ How to setup config file for this rule:
110110
```
111111

112112

113-
The following patterns are no warnings:
113+
The following patterns are *not* considered warnings:
114114

115115
```javascript
116116
// good1.js
@@ -151,7 +151,7 @@ import * as foo from './foo';
151151
export * from './other-module'
152152
```
153153

154-
Followings are considered as warnings:
154+
The following patterns are considered warnings:
155155

156156
```javascript
157157
// bad1.js

0 commit comments

Comments
 (0)