insertAfter adds empty line before
See original GitHub issueinsertAfter
adds new line before inserted ast.
I created second import by jscodeshift so in js it looks like
//Core
import React, { Component, PropTypes } from 'react';
import connect from 'react-redux';
But should be:
import React, { Component, PropTypes } from 'react';
import connect from 'react-redux';
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
How to add one empty line to the end of the file in Ansible?
It should be insertafter EOF which is default. The following should work. - lineinfile: dest: /mypath/myfile line: ''.
Read more >insertDocument results 1 one blank line before - Aspose Forums
I do this via insertAfter. But everytime insertDocument is executed then the insertion starts with a blank line.
Read more >Interop - how to always put a blank line between pasted tables
I am copying and pasting tables before putting some data in them i(f there is any data for that table). My problem is...
Read more >Linux: Using sed to insert lines before or after a match
The sed utility is a powerful utility for doing text transformations. In this article, I will provide an example of how to insert...
Read more >jQuery insertAfter() Method - GeeksforGeeks
The insertAfter() method is an inbuilt method in jQuery that is used to insert some HTML content after a specified element.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Also for anyone looking for a fix for running codemods: run this script afterwards to remove the empty lines: https://gist.github.com/jackaldridge/68b39a8e1de71384b8caaeb78ee10cda
For anyone else that comes across this, the accompanying
recast
issue can be found here:https://github.com/benjamn/recast/issues/371