File tree Expand file tree Collapse file tree 4 files changed +5
-0
lines changed
packages/plugin-putout-config Expand file tree Collapse file tree 4 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -297,6 +297,7 @@ Apply [`variables`](https://github.com/coderaiser/putout/tree/master/packages/pl
297297- "convert-const-to-let": "on",
298298- "extract-keyword-from-variables": "on"
299299- "split-variable-declarations: "on",
300+ - "reuse-duplicate-init: "on",
300301+ "variables": "off",
301302+ "variables/remove-unused": "on",
302303+ "variables/remove-useless": "on",
@@ -308,6 +309,7 @@ Apply [`variables`](https://github.com/coderaiser/putout/tree/master/packages/pl
308309+ "variables/convert-const-to-let": "on"
309310+ "variables/extract-keyword": "on"
310311+ "variables/split-declarations: "on",
312+ + "variables/reuse-duplicate-init: "on"
311313 }
312314}
313315```
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ __putout_processor_json({
33 "variables/convert-const-to-let" : "off" ,
44 "variables/extract-keywords" : "off" ,
55 "variables/split-declarations" : "off" ,
6+ "variables/reuse-duplicate-init" : "off" ,
67 "variables/remove-unused" : "off" ,
78 "variables" : "off" ,
89 "variables/remove-useless" : "on" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ __putout_processor_json({
33 "convert-const-to-let" : "off" ,
44 "extract-keyword-from-variables" : "off" ,
55 "split-variable-declarations" : "off" ,
6+ "reuse-duplicate-init" : "off" ,
67 "remove-unused-variables" : "off" ,
78 "remove-useless-variables" : "off" ,
89 "remove-useless-variables/remove" : "on" ,
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ const v41 = [
1212 [ 'extract-keyword-from-variables' , 'variables/extract-keywords' ] ,
1313 [ 'split-variable-declarations' , 'variables/split-declarations' ] ,
1414 [ 'remove-unused-variables' , 'variables/remove-unused' ] ,
15+ [ 'reuse-duplicate-init' , 'variables/reuse-duplicate-init' ] ,
1516] ;
1617
1718const versions = [ ...v41 ] ;
You can’t perform that action at this time.
0 commit comments