top of page

Optimizing PCF build for Power Platform Development

Context:
In Power Platform development, especially with PCF (PowerApps Component Framework) controls, linting is tightly integrated into the build process. While linting is essential for maintaining code quality, it can sometimes become a bottleneck—especially when unrelated configuration issues or dependency conflicts cause the linter to crash. Developers need a way to bypass linting temporarily to stay productive and keep builds moving forward.


Solution:
This tip introduces a clever workaround to skip linting during the PCF control build process. By reverse-engineering the pcf-scripts package, the author discovered that linting is triggered via a method called getSkipBuildLinting() in the validateTask.js file. This method checks a configuration flag from the build context. By modifying the buildContext.js file to return true for getSkipBuildLinting(), developers can effectively bypass the linting step during npm run build. This allows the build to proceed even if ESLint crashes—without affecting the rest of the control logic.


Impact:
This trick empowers PCF developers to maintain momentum during development, especially when linting issues are unrelated to actual code quality. It’s a practical, low-level tweak that can save hours of frustration and unblock deployment pipelines. While not a long-term substitute for proper linting, it’s a valuable tool for those moments when productivity matters most.

bottom of page