blade-cli 0.1.1

Fast, Node-free linter for Laravel Blade templates
blade-cli-0.1.1 is not a library.

blade-cli

The blade command: a fast, Node-free linter for Laravel Blade templates.

$ cargo install blade-cli
$ blade lint resources/views

It finds problems Blade only reveals when a page breaks: unclosed @if/@foreach/@section, {{ }} with nothing in it, forms browsers send with the wrong method or without a CSRF token, unescaped {!! !!} output, and more.

  • Output as text, JSON (--format json) or GitHub Actions annotations (--format github).
  • Configure rules in blade.toml, or silence one line with {{-- blade-lint-ignore-next-line rule --}}.

Other ways to install (npm, Homebrew, Composer, prebuilt binaries), the GitHub Action and the rule list: github.com/roderio/blade-rs.

License

MIT or Apache-2.0, at your option.