Commit 8da6a5a 1 parent 9405444 commit 8da6a5a Copy full SHA for 8da6a5a
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
# prefer-default-export
2
2
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.
4
4
5
5
## Rule Details
6
6
@@ -9,7 +9,7 @@ The following patterns are considered warnings:
9
9
``` javascript
10
10
// bad.js
11
11
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.
13
13
export const foo = ' foo' ;
14
14
15
15
```
@@ -28,15 +28,15 @@ export default 'bar';
28
28
``` javascript
29
29
// good2.js
30
30
31
- // There is more thank one named exports in the module.
31
+ // There is more than one named export in the module.
32
32
export const foo = ' foo' ;
33
33
export const bar = ' bar' ;
34
34
```
35
35
36
36
``` javascript
37
37
// good3.js
38
38
39
- // There is more thank one named exports in the module
39
+ // There is more than one named export in the module
40
40
const foo = ' foo' ;
41
41
const bar = ' bar' ;
42
42
export { foo , bar }
You can’t perform that action at this time.
0 commit comments