Last active
April 6, 2025 14:23
-
-
Save leMaur/fe0422d0995b2c407022804031bb3aef to your computer and use it in GitHub Desktop.
Laravel Pint
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
| { | |
| "preset": "laravel", | |
| "rules": { | |
| "backtick_to_shell_exec": true, | |
| "declare_strict_types": true, | |
| "final_class": true, | |
| "final_internal_class": true, | |
| "final_public_method_for_abstract_class": true, | |
| "fully_qualified_strict_types": true, | |
| "function_typehint_space": true, | |
| "global_namespace_import": { | |
| "import_classes": true, | |
| "import_constants": true, | |
| "import_functions": true | |
| }, | |
| "ordered_class_elements": { | |
| "order": [ | |
| "use_trait", | |
| "case", | |
| "constant", | |
| "constant_public", | |
| "constant_protected", | |
| "constant_private", | |
| "property_public", | |
| "property_protected", | |
| "property_private", | |
| "construct", | |
| "destruct", | |
| "magic", | |
| "phpunit", | |
| "method_abstract", | |
| "method_public_static", | |
| "method_public", | |
| "method_protected_static", | |
| "method_protected", | |
| "method_private_static", | |
| "method_private" | |
| ], | |
| "sort_algorithm": "none" | |
| }, | |
| "ordered_interfaces": true, | |
| "ordered_traits": true, | |
| "protected_to_private": true, | |
| "strict_comparison": true | |
| }, | |
| "exclude": [ | |
| "stubs" | |
| ] | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instructions
Install Laravel Pint
Copy this file into your project
Add script in Composer.json