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
@@ -61,7 +62,8 @@ npm i putout @putout/plugin-esm -D
61
62
"esm/apply-js-imported-file": "off",
62
63
"esm/resolve-imported-file": "off",
63
64
"esm/shorten-imported-file": "off",
64
-
"esm/apply-import-by-type-to-file": "off",
65
+
"esm/apply-name-to-imported-file": "off",
66
+
"esm/apply-namespace-to-imported-file": "off",
65
67
"esm/apply-privately-imported-file": "off",
66
68
"esm/remove-useless-export-specifiers": "off"
67
69
}
@@ -73,6 +75,7 @@ npm i putout @putout/plugin-esm -D
73
75
### add-index-to-import
74
76
75
77
ESM doesn't add `index.js`, so it can be left after [`@putout/plugin-convert-esm-to-commonjs`](https://github.com/coderaiser/putout/blob/master/packages/plugin-convert-esm-to-commonjs#readme).
78
+
76
79
Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/b7c489710767efee95ecf3dd16e232a2/9f974f0a345ef4d0cb39b011097dff82e6c32b75).
77
80
78
81
#### ❌ Example of incorrect code
@@ -399,54 +402,58 @@ import('foo.json', {
399
402
400
403
## File Rules
401
404
402
-
### apply-import-by-type-to-file
405
+
### apply-namespace-to-imported-file
403
406
404
407
The rule fixes:
405
408
406
409
> `SyntaxError: The requested module './a.js' does not provide an export named 'default'`
0 commit comments