-
Hey, I'm trying to figure out how to use this plugin to batch format all Blade files in a project with a single command, the same way I can do it with other Prettier-supported files by going to the root of my project and entering Despite following installation instructions, it seems that Prettier can't find Blade files when I run this command. However, if I specify the subfolder they are in, like for instance I just wanted to know if this is normal behavior or if I have missed something to configure. Here's my .prettierrc file: {
"plugins": ["@shufo/prettier-plugin-blade"],
"printWidth": 80,
"tabWidth": 2,
"bracketSameLine": true,
"overrides": [
{
"files": ["*.blade.php"],
"options": {
"parser": "blade",
"bracketSameLine": false
}
}
]
} Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Prettier 3.0 seems changed behaviour for Please use see: #213 (comment) |
Beta Was this translation helpful? Give feedback.
Prettier 3.0 seems changed behaviour for
.
matching.Please use
npx prettier **/*.* --write
for wildcard matching.see: #213 (comment)