This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zx | |
// Pass --verbose to see the full output | |
$.verbose = argv.verbose; | |
function isPHP(filename) { | |
return filename.match(/\.php$/); | |
} | |
function isJS(filename) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zx | |
// Pass --verbose to see the full output | |
$.verbose = argv.verbose; | |
const php = { | |
is: (file) => file.match(/\.php$/), | |
fix: async (file) => { | |
const result = await nothrow($`pnpm run -w php:autofix ${file}`); | |
// php:autofix outputs the fixes to stderr for some reason. |
OlderNewer