add linter
fix all lint reported errors