Skip to content

Commit

Permalink
feat: Add config for laravel/pint (#144)
Browse files Browse the repository at this point in the history
* feat: Add config for laravel/pint

- Supports both mason and local composer install

* chore: Add pint to formatters list in readme

* Revert "chore: Add pint to formatters list in readme"

This reverts commit 8edb456.

* fix: remove unnecessary mason executable path

* fix: Change meta description to it's short form
  • Loading branch information
kauffinger authored Oct 16, 2023
1 parent fea1acd commit 43414c8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lua/conform/formatters/pint.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
local util = require("conform.util")

---@type conform.FileFormatterConfig
return {
meta = {
url = "https://github.com/laravel/pint",
description = "Laravel Pint is an opinionated PHP code style fixer for minimalists.",
},
command = util.find_executable({
"vendor/bin/pint",
}, "pint"),
args = { "$FILENAME" },
stdin = false,
}

0 comments on commit 43414c8

Please sign in to comment.