luxplus/blade-linter
Luxplus Blade Linter scans Laravel Blade templates for syntax errors and common view issues, helping you catch problems before deployment. Run it via Artisan or CI to keep templates clean and reliable.
.blade.php formatting (e.g., sibling blank-line rules), so style consistency in views becomes enforceable rather than reviewer-dependent. This is the primary "build vs. buy" lever: adopt a small community linter instead of writing bespoke style checks.SiblingBlankLines rule behaves predictably around @if, @foreach, and similar directives — important if you plan to lint a large existing Blade codebase without a pile of false positives.--no-dev installs" directly supports decisions about where the linter runs. It reduces the risk of lint steps failing in production-like or --no-dev CI images where dev dependencies are absent, which is a real operational concern for pipelines that reuse build images.Consider adoption when:
--no-dev stages and you want a lint rule that will not break there (the 0.3.1 fix is directly relevant).Look elsewhere when:
view:cache/compile checks cover that; a linter addresses style, not semantics.Executives: This is a small, dev-only tooling addition that automates Blade template formatting. It reduces review time and enforces consistency in views at near-zero runtime cost and no production footprint. The latest patch (0.3.1) is a low-risk bugfix that improves rule correctness and CI safety; it does not change product behavior. Recommendation: approve a low-cost pilot in CI, revisit for broader standardization after a trial period.
Engineering: Single-purpose Blade linter, installs as a dev dependency and slots into existing CI/pre-commit hooks. 0.3.1 fixes SiblingBlankLines so element directives behave as a boolean toggle and the rule is safe under --no-dev installs — this removes a class of false positives and pipeline fragility. Caveats: it is 0.x, so pin versions and expect rule semantics to evolve; pair it with existing PHP linting rather than replacing it. Suggested next step: run against a representative template set, measure noise, then wire into the PR pipeline.
How can I help you explore Laravel packages today?