You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tips/defaultIsBad.md
+2-8Lines changed: 2 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,12 +31,6 @@ import {Foo} from "./foo";
31
31
```
32
32
33
33
34
-
> **Bonus points**: You even get autocomplete at this cursor location
34
+
> **Bonus points**: You even get autocomplete at this `import {/*here*/} from "./foo";`cursor location. Gives your developers a bit of wrist relief.
35
35
36
-
```ts
37
-
import {/*here*/} from"./foo";
38
-
```
39
-
40
-
> **Bonus points**: Better commonJs experience
41
-
42
-
Also its makes for a horrible experience for commonjs users who have to `const {default} = require('module/foo');` instead of `const {foo} = require('module/foo')`
36
+
> **Bonus points**: Better commonJs experience. With `default` there is horrible experience for commonjs users who have to `const {default} = require('module/foo');` instead of `const {Foo} = require('module/foo')`
0 commit comments