convert to javascript entirely, config and code, using eshint