Add in PHP linter rules

This commit is contained in:
Matt Blacker 2024-06-18 16:17:18 +10:00
parent 8ab65c2e52
commit e9dda24ae9
1 changed files with 12 additions and 0 deletions

View File

@ -780,6 +780,18 @@ require('lazy').setup({
-- You can use a sub-list to tell conform to run *until* a formatter
-- is found.
-- javascript = { { "prettierd", "prettier" } },
php = { 'php' },
},
formatters = {
php = {
command = 'php-cs-fixer',
args = {
'fix',
'--rules=@PSR2',
'$FILENAME',
},
stdin = false,
},
},
},
},