Skip to content

Instantly share code, notes, and snippets.

@eSkiSo
Created February 23, 2025 13:54
Show Gist options
  • Save eSkiSo/5ca0ec22c0087de2f9830a4c452417e8 to your computer and use it in GitHub Desktop.
Save eSkiSo/5ca0ec22c0087de2f9830a4c452417e8 to your computer and use it in GitHub Desktop.
Laravel Pint rules
{
"preset": "laravel",
"rules": {
"array_push": true,
"backtick_to_shell_exec": true,
"date_time_immutable": true,
"lowercase_keywords": true,
"lowercase_static_reference": true,
"final_class": true,
"final_internal_class": true,
"final_public_method_for_abstract_class": true,
"global_namespace_import": {
"import_classes": true,
"import_constants": true,
"import_functions": true
},
"mb_str_functions": true,
"modernize_types_casting": true,
"new_with_parentheses": false,
"no_superfluous_elseif": true,
"no_useless_else": true,
"no_multiple_statements_per_line": true,
"no_blank_lines_after_class_opening": false,
"blank_line_after_opening_tag": true,
"curly_braces_position": {
"functions_opening_brace": "same_line",
"classes_opening_brace": "same_line",
"anonymous_classes_opening_brace": "same_line"
},
"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,
"self_accessor": true,
"self_static_accessor": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment