Ivan Georgiev
Ivan Georgiev
In my fork of the project I have fixed a bunch of problems including this one. All the tests are passing, but surely you will want for me to add...
In lib/ImportStatements.js reverse the result in the _toGroups() with .reverse() let result = partition( importsArray, (importStatement: ImportStatement): boolean => !importStatement.isParsedAndUntouched(), ).reverse();
It searches your whole file for missing imports and adds them or removes unused ones. This way you can write your file and at the end fix the imports. And...
Hmm, I was seeing it like this: 1) remove unused imports 2) search for the locally undefined variables in the file and add them to a list 3) search the...
1. you can use eslint for that as well. As for the partial imports -> match them with the regex `'\,\=\s*\(unusedImport\)'` and remove them 2. the complication of adding this...
`Error detected while processing function jsfileimport#fix_imports#exec[44]..jsfileimport#utils#_restore_cursor_position:` `E20: Mark not set` This was the initial error which I fixed by changin `normal` to `normal!` But then I received this error which...
I just found out that this project doesn't import from `node_modules`. Even if the fix imports command was working, the need for manually adding imports from `node_modules` renders it obsolete....
Oh sorry, I was wrong then.
The pathing for eslint may be incorrect like in my case, but even if I use the correct pathing, I receive the following error: `Vim(let):E730: using List as a String`
It is import. I forgot you mentioned, you made it work with require only right?