Skip to content

Commit 02cedc5

Browse files
committed
feature: @putout/plugin-putout-config: apply-esm: add
1 parent bdef0da commit 02cedc5

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

packages/plugin-putout-config/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ npm i @putout/plugin-putout-config -D
1414
## Rules
1515

1616
-[apply-conditions](#apply-conditions);
17+
-[apply-esm](#apply-esm);
1718
-[apply-for-of](#apply-for-of);
1819
-[apply-labels](#apply-labels);
1920
-[apply-math](#apply-math);
@@ -35,6 +36,7 @@ npm i @putout/plugin-putout-config -D
3536
{
3637
"rules": {
3738
"putout-config/apply-conditions": "on",
39+
"putout-config/apply-esm": "on",
3840
"putout-config/apply-for-of": "on",
3941
"putout-config/apply-labels": "on",
4042
"putout-config/apply-math": "on",
@@ -52,6 +54,31 @@ npm i @putout/plugin-putout-config -D
5254
}
5355
```
5456

57+
## apply-esm
58+
59+
Apply [`esm`](https://github.com/coderaiser/putout/tree/master/packages/plugin-esm#readme) according to:
60+
61+
- 🐊[**Putout v37**](https://github.com/coderaiser/putout/releases/tag/v37.0.0):
62+
63+
```diff
64+
{
65+
"rules": {
66+
- "remove-empty/import": "on",
67+
- "remove-empty/export": "on",
68+
+ "esm/remove-empty-import": "on",
69+
+ "esm/remove-empty-export": "on",
70+
- "group-imports-by-source": "on",
71+
- "declare-imports-first": "on",
72+
- "remove-quotes-from-import-assertions": "on",
73+
- "merge-duplicate-imports": "on"
74+
+ "esm/group-imports-by-source": "on",
75+
+ "esm/declare-imports-first": "on",
76+
+ "esm/remove-quotes-from-import-assertions": "on",
77+
+ "esm/merge-duplicate-imports": "on"
78+
}
79+
}
80+
```
81+
5582
## apply-optional-chaining
5683

5784
Apply [`optional-chaining`](https://github.com/coderaiser/putout/tree/master/packages/plugin-optional-chaining#readme) according to:

0 commit comments

Comments
 (0)