small improvements to esl parser
add editorconfig
refactor tests to use mocha+chai