File tree Expand file tree Collapse file tree 6 files changed +15
-8
lines changed
packages/plugin-putout-config Expand file tree Collapse file tree 6 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -96,12 +96,14 @@ Apply [`esm`](https://github.com/coderaiser/putout/tree/master/packages/plugin-e
9696- "group-imports-by-source": "on",
9797- "declare-imports-first": "on",
9898- "remove-quotes-from-import-assertions": "on",
99- - "merge-duplicate-imports": "on"
99+ - "merge-duplicate-imports": "on",
100+ - "sort-imports-by-specifiers": "on"
100101+ "esm/convert-assert-to-with": "off",
101102+ "esm/group-imports-by-source": "on",
102103+ "esm/declare-imports-first": "on",
103104+ "esm/remove-quotes-from-import-assertions": "on",
104- + "esm/merge-duplicate-imports": "on"
105+ + "esm/merge-duplicate-imports": "on",
106+ + "esm/sort-imports-by-specifiers": "on"
105107 }
106108}
107109```
Original file line number Diff line number Diff line change 11__putout_processor_json ( {
2- " rules" : {
2+ rules : {
33 "esm/convert-assert-to-with" : "off" ,
44 "esm/remove-empty-import" : "on" ,
55 "esm/remove-empty-export" : "on" ,
66 "esm/group-imports-by-source" : "on" ,
77 "esm/declare-imports-first" : "on" ,
88 "esm/remove-quotes-from-import-assertions" : "on" ,
9+ "esm/sort-imports-by-specifiers" : "on" ,
910 "esm/merge-duplicate-imports" : "on"
1011 }
1112} ) ;
Original file line number Diff line number Diff line change 11__putout_processor_json ( {
2- " rules" : {
2+ rules : {
33 "convert-assert-to-with" : "off" ,
44 "remove-empty/import" : "on" ,
55 "remove-empty/export" : "on" ,
66 "group-imports-by-source" : "on" ,
77 "declare-imports-first" : "on" ,
88 "remove-quotes-from-import-assertions" : "on" ,
9+ "sort-imports-by-specifiers" : "on" ,
910 "merge-duplicate-imports" : "on"
10- }
11+ }
1112} ) ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ const v37 = [
99 [ 'group-imports-by-source' , 'esm/group-imports-by-source' ] ,
1010 [ 'declare-imports-first' , 'esm/declare-imports-first' ] ,
1111 [ 'remove-quotes-from-import-assertions' , 'esm/remove-quotes-from-import-assertions' ] ,
12+ [ 'sort-imports-by-specifiers' , 'esm/sort-imports-by-specifiers' ] ,
1213 [ 'merge-duplicate-imports' , 'esm/merge-duplicate-imports' ] ,
1314] ;
1415
Original file line number Diff line number Diff line change 11__putout_processor_json ( {
2- " rules" : {
2+ rules : {
33 "esm/remove-empty-import" : "on" ,
44 "esm/remove-empty-export" : "on" ,
55 "esm/group-imports-by-source" : "on" ,
66 "esm/declare-imports-first" : "on" ,
77 "esm/remove-quotes-from-import-assertions" : "on" ,
8+ "esm/sort-imports-by-specifiers" : "on" ,
89 "esm/merge-duplicate-imports" : "on"
910 }
1011} ) ;
Original file line number Diff line number Diff line change 11__putout_processor_json ( {
2- " rules" : {
2+ rules : {
33 "remove-empty/import" : "on" ,
44 "remove-empty/export" : "on" ,
55 "group-imports-by-source" : "on" ,
66 "declare-imports-first" : "on" ,
77 "remove-quotes-from-import-assertions" : "on" ,
8+ "sort-imports-by-specifiers" : "on" ,
89 "merge-duplicate-imports" : "on"
9- }
10+ }
1011} ) ;
You can’t perform that action at this time.
0 commit comments