Refactor lint build and enable preview support