@@ -25,6 +25,7 @@ npm i @putout/plugin-putout -D
25
25
- ✅ [ apply-create-test] ( #apply-create-test ) ;
26
26
- ✅ [ apply-create-nested-directory] ( #apply-create-nested-directory ) ;
27
27
- ✅ [ apply-declare] ( #apply-declare ) ;
28
+ - ✅ [ apply-exports] ( #apply-exports ) ;
28
29
- ✅ [ apply-exports-to-add-args] ( #apply-exports-to-add-args ) ;
29
30
- ✅ [ apply-exports-to-match-files] ( #apply-exports-to-match-files ) ;
30
31
- ✅ [ apply-exports-to-rename-files] ( #apply-exports-to-rename-files ) ;
@@ -99,6 +100,7 @@ npm i @putout/plugin-putout -D
99
100
"putout/apply-create-nested-directory" : " on" ,
100
101
"putout/apply-async-formatter" : " on" ,
101
102
"putout/apply-declare" : " on" ,
103
+ "putout/apply-exports" : " on" ,
102
104
"putout/apply-exports-to-add-args" : " on" ,
103
105
"putout/apply-exports-to-match-files" : " on" ,
104
106
"putout/apply-exports-to-rename-files" : " on" ,
@@ -462,6 +464,53 @@ module.exports.declare = () => ({
462
464
});
463
465
` ` `
464
466
467
+ ## apply-exports
468
+
469
+ Check out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/cf35de5e80e8f7aad866358a50c5eded/0af6142fc9c9e71ac2a2aa96cb85613dd95c9fbf).
470
+ Possible configuration:
471
+
472
+ ` ` ` json
473
+ {
474
+ " rules" : {
475
+ " putout/apply-exports" : {
476
+ " addArgs" : [
477
+ " report" ,
478
+ " fix" ,
479
+ " scan"
480
+ ]
481
+ }
482
+ }
483
+ }
484
+ ` ` `
485
+
486
+ ### ❌ Example of incorrect code
487
+
488
+ ` ` ` js
489
+ export default createRenameProperty ([
490
+ ... v32,
491
+ ... v29,
492
+ ]);
493
+ ` ` `
494
+
495
+ ### ✅ Example of correct code
496
+
497
+ ` ` ` js
498
+ const {
499
+ report ,
500
+ fix ,
501
+ scan ,
502
+ } = createRenameProperty ([
503
+ ... v32,
504
+ ... v29,
505
+ ]);
506
+
507
+ export {
508
+ report ,
509
+ fix ,
510
+ scan ,
511
+ };
512
+ ` ` `
513
+
465
514
## apply-exports-to-add-args
466
515
467
516
Check out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/cf35de5e80e8f7aad866358a50c5eded/0af6142fc9c9e71ac2a2aa96cb85613dd95c9fbf).
0 commit comments