Skip to content

Commit 9610ca4

Browse files
committed
feature: @putout/plugin-putout-config: apply-esm: convert-assert-to-with
1 parent 93cd1c4 commit 9610ca4

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

packages/plugin-putout-config/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ Apply [`esm`](https://github.com/coderaiser/putout/tree/master/packages/plugin-e
6969
- "remove-empty/export": "on",
7070
+ "esm/remove-empty-import": "on",
7171
+ "esm/remove-empty-export": "on",
72+
- "convert-assert-to-with": "off",
7273
- "group-imports-by-source": "on",
7374
- "declare-imports-first": "on",
7475
- "remove-quotes-from-import-assertions": "on",
7576
- "merge-duplicate-imports": "on"
77+
+ "esm/convert-assert-to-with": "off",
7678
+ "esm/group-imports-by-source": "on",
7779
+ "esm/declare-imports-first": "on",
7880
+ "esm/remove-quotes-from-import-assertions": "on",

packages/plugin-putout-config/lib/apply-esm/fixture/apply-esm-fix.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
__putout_processor_json({
22
"rules": {
3+
"esm/convert-assert-to-with": "off",
34
"esm/remove-empty-import": "on",
45
"esm/remove-empty-export": "on",
56
"esm/group-imports-by-source": "on",

packages/plugin-putout-config/lib/apply-esm/fixture/apply-esm.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
__putout_processor_json({
22
"rules": {
3+
"convert-assert-to-with": "off",
34
"remove-empty/import": "on",
45
"remove-empty/export": "on",
56
"group-imports-by-source": "on",

packages/plugin-putout-config/lib/apply-esm/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
const {createRenameProperty} = require('../rename-property');
44

55
const v37 = [
6+
['convert-assert-to-with', 'esm/convert-assert-to-with'],
67
['remove-empty/import', 'esm/remove-empty-import'],
78
['remove-empty/export', 'esm/remove-empty-export'],
89
['group-imports-by-source', 'esm/group-imports-by-source'],

packages/plugin-putout-config/lib/apply-esm/index.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const test = createTest(__dirname, {
1010
});
1111

1212
test('putout-config: apply-esm: report', (t) => {
13-
t.report('apply-esm', `Rename property: 'remove-empty/import' -> 'esm/remove-empty-import'`);
13+
t.report('apply-esm', `Rename property: 'convert-assert-to-with' -> 'esm/convert-assert-to-with'`);
1414
t.end();
1515
});
1616

0 commit comments

Comments
 (0)