@@ -27,15 +27,15 @@ How to setup config file for this rule:
27
27
28
28
``` javascript
29
29
// you can manually specify it
30
- " rules" : {
30
+ " rules" : {
31
31
" import/prefer-default-export" : [
32
32
( " off" | " warn" | " error" ),
33
33
{ " target" : " single" }
34
34
]
35
35
}
36
36
37
37
// config setup below will also work
38
- " rules" : {
38
+ " rules" : {
39
39
" import/prefer-default-export" : " off" | " warn" | " error"
40
40
}
41
41
```
@@ -95,13 +95,13 @@ export * from './other-module'
95
95
96
96
#### any
97
97
98
- ** Definition** : any exporting file must contain default export.
98
+ ** Definition** : any exporting file must contain a default export.
99
99
100
100
How to setup config file for this rule:
101
101
102
102
``` javascript
103
- // you can manually specify it
104
- " rules" : {
103
+ // you have to manually specify it
104
+ " rules" : {
105
105
" import/prefer-default-export" : [
106
106
( " off" | " warn" | " error" ),
107
107
{ " target" : " any" }
@@ -110,7 +110,7 @@ How to setup config file for this rule:
110
110
```
111
111
112
112
113
- The following patterns are no warnings:
113
+ The following patterns are * not * considered warnings:
114
114
115
115
``` javascript
116
116
// good1.js
@@ -151,7 +151,7 @@ import * as foo from './foo';
151
151
export * from ' ./other-module'
152
152
```
153
153
154
- Followings are considered as warnings:
154
+ The following patterns are considered warnings:
155
155
156
156
``` javascript
157
157
// bad1.js
0 commit comments