Fixed linting issues in formatter