composer require indykoning/grumphp-prettier
And at the very least you need prettier installed in your node_modules folder.
yarn add prettier
In your grumphp.yml :
grumphp:
extensions:
- Indykoning\GrumPHPPrettier\ExtensionLoader
tasks:
prettier:
# These are all optional
command: "node_modules/.bin/prettier"
triggered_by: ["js", "ts", "jsx", "tsx", "vue", "css", "less", "scss", "sass", "html", "blade.php", "antlers", "phtml"]
ignore_patterns: []
# These optional settings pass arguments to prettier, overwriting your .prettierrc
# https://prettier.io/docs/en/options.html
ignore_unknown: true
arrow_parens:
ignore_unknown:
arrow_parens:
bracket_same_line:
no_bracket_spacing:
end_of_line:
html_whitespace_sensitivity:
parser:
print_width:
prose_wrap:
quote_props:
no_semi:
single_attribute_per_line:
single_quote:
tab_width:
trailing_comma:
use_tabs:
vue_indent_script_and_style: