Last active
February 22, 2025 08:41
-
-
Save risuvoo/e895f7f4f8e76bf56a3de552cecaaf7e to your computer and use it in GitHub Desktop.
Prettier Setup Lavavel
This file contains hidden or 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
| // Install this Package Link: https://www.npmjs.com/package/prettier-plugin-blade | |
| npm install prettier-plugin-blade@^2 | |
| // create prettierrc file and add this code | |
| { | |
| "plugins": ["prettier-plugin-blade"], | |
| "printWidth": 200, | |
| "overrides": [ | |
| { | |
| "files": ["*.blade.php"], | |
| "options": { | |
| "parser": "blade" | |
| } | |
| } | |
| ] | |
| } | |
| // Optional: For VS Code Settings | |
| "[blade]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment