Add lint config and fix issues reported by lint.