This PR migrates lib/autocomplete.js to the src folder, fixing most eslint and flow errors. This file really exposes two functions, exec and match. I thought it was better to not expose these functions as a class, so I kept the filename autocomplete.js instead of Autocomplete.js.
@milesj
There were a a handful of eslint errors and flow errors I purposely did not fix, because I felt by doing so, it would required changing too much of the logic outside of the scope of this PR.
The previous autocomplete tests tested the _autocomplete function exposed on session rather than unit testing the individual functionality in autocomplete.js. If it's alright with you, I like to try to get a better understanding of autocomplete.js and start writing some tests for it. I could whip up a initial implementation of setting up jest testing next if you don't mind.
This PR migrates
lib/autocomplete.js
to thesrc
folder, fixing most eslint and flow errors. This file really exposes two functions,exec
andmatch
. I thought it was better to not expose these functions as a class, so I kept the filenameautocomplete.js
instead ofAutocomplete.js
.@milesj There were a a handful of eslint errors and flow errors I purposely did not fix, because I felt by doing so, it would required changing too much of the logic outside of the scope of this PR.
The previous autocomplete tests tested the
_autocomplete
function exposed onsession
rather than unit testing the individual functionality inautocomplete.js
. If it's alright with you, I like to try to get a better understanding ofautocomplete.js
and start writing some tests for it. I could whip up a initial implementation of setting up jest testing next if you don't mind.