-
-
Save lunitrixx/46d1741a7ca348f694f1f52f7e64d190 to your computer and use it in GitHub Desktop.
Revisions
-
marcorieser renamed this gist
Apr 29, 2025 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
marcorieser revised this gist
Apr 29, 2025 . 1 changed file with 24 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,8 @@ ## Install dependencies Run `npm install -D prettier prettier-plugin-antlers prettier-plugin-blade prettier-plugin-tailwindcss` in your terminal ## Prettier ### Configure prettier Create a `.prettierrc` file with the following content ```json { @@ -51,10 +52,29 @@ Create a `.prettierrc` file with the following content ] } ``` ### Disable prettier for yaml and md Create a `.prettierignore` file with the following content ``` **/*.md **/*.yaml ``` ### Register Prettier as formatter Under `Settings | Languages & Frameworks | JavaScript | Prettier` - Choose `Automatic Prettier configuration` - Add the this pattern for `Run for Files`: `**/*.{js,ts,jsx,tsx,cjs,cts,mjs,mts,vue,blade.php,antlers.html,css}` - Tick the boxes for - `Run on save` - `Prefer Prettier configuration to IDE code style` ## Pint ## Configure Pint - Under `Settings | PHP | Quality Tools`, enable `Laravel Pint` as External Formatter - Under `Settings | PHP | Quality Tools | Laravel Pint`, enable Pint - Under `Settings | Tools | Actions on Save` - Enable `Reformat code` - Exclude the file types `Antlers`, `Blade`, `Markdown`, and `Yaml` ## Troubleshooting - Make sure a Node interpreter is selected under `Settings > Language & Frameworks > Node.js` -
marcorieser renamed this gist
Apr 29, 2025 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
marcorieser renamed this gist
Apr 29, 2025 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
marcorieser revised this gist
Apr 29, 2025 . No changes.There are no files selected for viewing
-
marcorieser revised this gist
Apr 29, 2025 . 1 changed file with 45 additions and 34 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,43 +1,54 @@ ## Install dependencies Run `npm install -D prettier prettier-plugin-antlers prettier-plugin-blade prettier-plugin-tailwindcss` in your terminal ## Configure prettier Create a `.prettierrc` file with the following content ```json { "singleQuote": true, "printWidth": 140, "tabWidth": 4, "plugins": [ "prettier-plugin-antlers", "prettier-plugin-blade", "prettier-plugin-tailwindcss" ], "tailwindStylesheet": "./resources/css/site.css", "overrides": [ { "files": "*.antlers.html", "options": { "parser": "antlers", "singleQuote": false } }, { "files": "*.blade.php", "options": { "parser": "blade", "singleQuote": false } }, { "files": [ "**/*.css", "**/*.html" ], "options": { "singleQuote": false } }, { "files": [ "**/*.yaml", "**/*.yml" ], "options": { "singleQuote": false, "tabWidth": 2 } } ] } ``` ## Register Prettier as formatter -
marcorieser revised this gist
Apr 29, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -43,7 +43,7 @@ Create a `.prettierrc` file with the following content ## Register Prettier as formatter Under `Settings > Languages & Frameworks > JavaScript > Prettier` register the following pattern for `Run for Files`: `**/*.{js,ts,jsx,tsx,cjs,cts,mjs,mts,vue,blade.php,antlers.html,css}` ## Troubleshooting - Make sure a Node interpreter is selected under `Settings > Language & Frameworks > Node.js` -
marcorieser revised this gist
Nov 14, 2024 . 1 changed file with 2 additions and 10 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,16 +6,9 @@ Create a `.prettierrc` file with the following content ```json { "singleQuote": true, "printWidth": 140, "tabWidth": 4, "plugins": ["prettier-plugin-antlers", "prettier-plugin-blade", "@prettier/plugin-php", "prettier-plugin-tailwindcss"], "overrides": [ { "files": "*.antlers.html", @@ -28,7 +21,6 @@ Create a `.prettierrc` file with the following content "files": ["**/*.php", "**/!*.blade.php"], "options": { "parser": "php", "phpVersion": "8.2" } }, -
marcorieser revised this gist
Jan 1, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -48,7 +48,7 @@ Create a `.prettierrc` file with the following content ] } ``` ## Register Prettier as formatter Under `Settings > Languages & Frameworks > JavaScript > Prettier` register the following pattern for `Run for Files`: `{**/*,*}.{js,ts,jsx,tsx,html,vue,php,css}` -
marcorieser renamed this gist
Jan 1, 2024 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -11,10 +11,10 @@ Create a `.prettierrc` file with the following content "tabWidth": 2, "endOfLine": "lf", "plugins": [ "prettier-plugin-antlers", "prettier-plugin-blade", "@prettier/plugin-php", "prettier-plugin-tailwindcss" ], "overrides": [ { -
marcorieser revised this gist
Jan 1, 2024 . 1 changed file with 6 additions and 12 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,5 @@ ## Install dependencies Run `npm install -D prettier prettier-plugin-antlers prettier-plugin-blade prettier-plugin-tailwindcss @prettier/plugin-php` in your terminal ## Configure prettier Create a `.prettierrc` file with the following content @@ -18,9 +11,10 @@ Create a `.prettierrc` file with the following content "tabWidth": 2, "endOfLine": "lf", "plugins": [ "prettier-plugin-tailwindcss", "prettier-plugin-antlers", "prettier-plugin-blade", "@prettier/plugin-php" ], "overrides": [ { @@ -57,7 +51,7 @@ Create a `.prettierrc` file with the following content ## Register prettier as formatter Under `Settings > Languages & Frameworks > JavaScript > Prettier` register the following pattern for `Run for Files`: `{**/*,*}.{js,ts,jsx,tsx,html,vue,php,css}` ## Troubleshooting - Make sure a Node interpreter is selected under `Settings > Language & Frameworks > Node.js` -
marcorieser revised this gist
Dec 7, 2023 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,12 @@ ## Install dependencies Some plugins are not yet compatible with Prettier v3: - https://github.com/Stillat/blade-parser-typescript/issues/69 - https://github.com/Stillat/vscode-antlers-language-server/issues/73 Run `npm install -D prettier@^2 prettier-plugin-antlers prettier-plugin-blade [email protected] @prettier/[email protected]` in your terminal ~~Run `npm install -D prettier prettier-plugin-antlers prettier-plugin-blade prettier-plugin-tailwindcss @prettier/plugin-php` in your terminal~~ ## Configure prettier Create a `.prettierrc` file with the following content -
marcorieser revised this gist
Dec 7, 2023 . 2 changed files with 56 additions and 49 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,49 +0,0 @@ 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,56 @@ ## Install dependencies Run `npm install -D prettier prettier-plugin-antlers prettier-plugin-blade prettier-plugin-tailwindcss @prettier/plugin-php` in your terminal ## Configure prettier Create a `.prettierrc` file with the following content ```json { "singleQuote": true, "trailingComma": "all", "printWidth": 140, "tabWidth": 2, "endOfLine": "lf", "plugins": [ "./node_modules/prettier-plugin-antlers", "./node_modules/prettier-plugin-blade", "./node_modules/@prettier/plugin-php" ], "overrides": [ { "files": "*.antlers.html", "options": { "parser": "antlers", "singleQuote": false } }, { "files": ["**/*.php", "**/!*.blade.php"], "options": { "parser": "php", "singleQuote": false, "phpVersion": "8.2" } }, { "files": "*.blade.php", "options": { "parser": "blade", "singleQuote": false } }, { "files": ["**/*.css", "**/*.html"], "options": { "singleQuote": false } } ] } ``` ## Register prettier as formatter Under `Settings > Languages & Frameworks > JavaScript > Prettier` register the following pattern for `Run for Files`: `{**/*,*}.{js,ts,jsx,tsx,antlers.html,vue,php,css}` ## Troubleshooting - Make sure a Node interpreter is selected under `Settings > Language & Frameworks > Node.js` -
marcorieser revised this gist
Jan 11, 2023 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -43,4 +43,7 @@ Create a `.prettierrc` file with the following content ## Register prettier as formatter Under `Settings > Languages & Frameworks > JavaScript > Prettier` register the following pattern for `Run for Files`: `{**/*,*}.{js,ts,jsx,tsx,antlers.html,vue,blade.php,css}` ## Troubleshooting - Make sure a Node interpreter is selected under `Settings > Language & Frameworks > Node.js` -
marcorieser revised this gist
Dec 13, 2022 . No changes.There are no files selected for viewing
-
marcorieser revised this gist
Dec 13, 2022 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -41,5 +41,6 @@ Create a `.prettierrc` file with the following content } ``` ## Register prettier as formatter Under `Settings > Languages & Frameworks > JavaScript > Prettier` register the following pattern for `Run for Files`: `{**/*,*}.{js,ts,jsx,tsx,antlers.html,vue,blade.php,css}` -
marcorieser revised this gist
Aug 16, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -42,4 +42,4 @@ Create a `.prettierrc` file with the following content ``` ## Register prettier as formatter Under `Settings > Languages & Frameworks > JavaScript > Prettier` register the following pattern for `Run for Files`. `{**/*,*}.{js,ts,jsx,tsx,antlers.html,blade.php,css}` -
marcorieser revised this gist
Jul 19, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ ## Install dependencies Run `npm install -D prettier prettier-plugin-antlers prettier-plugin-blade prettier-plugin-tailwindcss` in your terminal ## Configure prettier Create a `.prettierrc` file with the following content -
marcorieser revised this gist
Jul 19, 2022 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ ## Install dependencies Run `npm install -D prettier prettier-plugin-antler prettier-plugin-blade prettier-plugin-tailwindcss` in your terminal ## Configure prettier Create a `.prettierrc` file with the following content @@ -12,7 +12,7 @@ Create a `.prettierrc` file with the following content "endOfLine": "lf", "plugins": [ "./node_modules/prettier-plugin-antlers/", "./node_modules/prettier-plugin-blade/" ], "overrides": [ { -
marcorieser revised this gist
Jul 18, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -42,4 +42,4 @@ Create a `.prettierrc` file with the following content ``` ## Register prettier as formatter Under `Settings > Languages & Frameworks > JavaScript > Prettier` register the following pattern for `Run for Files`. `{**/*,*}.{js,ts,jsx,tsx,antlers.html,blade.php}` -
marcorieser revised this gist
Jul 18, 2022 . 3 changed files with 10 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,9 @@ ## Install dependencies Run `npm install -D prettier prettier-plugin-antler prettier-plugin-blade-stillat prettier-plugin-tailwindcss` in your terminal ## Configure prettier Create a `.prettierrc` file with the following content ```js { "singleQuote": true, "trailingComma": "all", @@ -33,3 +39,7 @@ } ] } ``` ## Register prettier as formatter Under `Settings > Languages & Frameworks > JavaScript > Prettier` register the following pattern for `Run for Files`. `{**/*,*}.{js,ts,jsx,tsx,antlers.html,blade.php}z 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +0,0 @@ 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +0,0 @@ -
marcorieser created this gist
Jul 18, 2022 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ { "singleQuote": true, "trailingComma": "all", "printWidth": 140, "tabWidth": 2, "endOfLine": "lf", "plugins": [ "./node_modules/prettier-plugin-antlers/", "./node_modules/prettier-plugin-blade-stillat/" ], "overrides": [ { "files": "*.antlers.html", "options": { "parser": "antlers" } }, { "files": "*.blade.php", "options": { "parser": "blade" } }, { "files": [ "**/*.css", "**/*.html", "**/*.php" ], "options": { "singleQuote": false } } ] } 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ {**/*,*}.{js,ts,jsx,tsx,antlers.html,blade.php} 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ npm install -D prettier prettier-plugin-antler prettier-plugin-blade-stillat prettier-plugin-tailwindcss