Skip to content

Instantly share code, notes, and snippets.

@hungthai1401
Created June 20, 2023 03:54
Show Gist options
  • Save hungthai1401/eeb597b6a809c58845b59430a943404d to your computer and use it in GitHub Desktop.
Save hungthai1401/eeb597b6a809c58845b59430a943404d to your computer and use it in GitHub Desktop.
My Laravel Pint configuration
{
"preset": "laravel",
"rules": {
"align_multiline_comment": true,
"array_syntax": true,
"combine_consecutive_issets": true,
"combine_consecutive_unsets": true,
"concat_space": true,
"declare_parentheses": true,
"declare_strict_types": true,
"explicit_string_variable": true,
"final_class": true,
"final_internal_class": false,
"global_namespace_import": {
"import_classes": true,
"import_constants": true,
"import_functions": true
},
"is_null": true,
"logical_operators": true,
"mb_str_functions": true,
"modernize_strpos": true,
"new_with_braces": true,
"no_empty_comment": 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_traits": true,
"protected_to_private": true,
"simplified_if_return": true,
"strict_comparison": true,
"ternary_to_null_coalescing": true,
"trailing_comma_in_multiline": {
"elements": ["arguments", "arrays", "match", "parameters"]
},
"use_arrow_functions": true,
"void_return": true,
"yoda_style": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment