refactor: DRY out lint.js, although I think it has more lines of code now...