Skip to content

Instantly share code, notes, and snippets.

@gvieira18
Last active April 25, 2025 12:55
Show Gist options
  • Save gvieira18/b9790e5dcd39b6be9e71386cdf7bcffd to your computer and use it in GitHub Desktop.
Save gvieira18/b9790e5dcd39b6be9e71386cdf7bcffd to your computer and use it in GitHub Desktop.
Pint config
{
"preset": "psr12",
"rules": {
"align_multiline_comment": true,
"array_indentation": true,
"array_syntax": true,
"blank_line_after_namespace": true,
"blank_line_after_opening_tag": 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,
"fully_qualified_strict_types": true,
"global_namespace_import": {
"import_classes": true,
"import_constants": true,
"import_functions": true
},
"is_null": true,
"lambda_not_used_import": true,
"logical_operators": true,
"mb_str_functions": true,
"method_chaining_indentation": true,
"modernize_strpos": true,
"new_with_braces": true,
"no_empty_comment": true,
"not_operator_with_space": true,
"ordered_traits": true,
"protected_to_private": true,
"simplified_if_return": true,
"strict_comparison": true,
"ternary_to_null_coalescing": true,
"trim_array_spaces": true,
"use_arrow_functions": true,
"void_return": true,
"yoda_style": true
}
}
{
"preset": "laravel",
"rules": {
"no_unused_imports": true,
"align_multiline_comment": true,
"array_indentation": true,
"array_push": true,
"array_syntax": true,
"assign_null_coalescing_to_coalesce_equal": true,
"attribute_empty_parentheses": true,
"binary_operator_spaces": true,
"blank_line_after_namespace": true,
"blank_line_after_opening_tag": true,
"blank_line_before_statement": true,
"cast_spaces": true,
"class_attributes_separation": true,
"class_definition": true,
"class_reference_name_casing": true,
"clean_namespace": true,
"combine_consecutive_issets": false,
"combine_consecutive_unsets": false,
"combine_nested_dirname": true,
"compact_nullable_type_declaration": true,
"concat_space": {
"spacing": "none"
},
"constant_case": true,
"control_structure_braces": true,
"control_structure_continuation_position": true,
"declare_equal_normalize": true,
"declare_parentheses": true,
"declare_strict_types": false,
"dir_constant": true,
"elseif": true,
"fully_qualified_strict_types": true,
"function_declaration": {
"closure_fn_spacing": "one",
"closure_function_spacing": "one",
"trailing_comma_single_line": true
},
"line_ending": true,
"logical_operators": true,
"lowercase_cast": true,
"lowercase_keywords": true,
"lowercase_static_reference": true,
"magic_constant_casing": true,
"magic_method_casing": true,
"mb_str_functions": true,
"method_chaining_indentation": true,
"modernize_strpos": true,
"modernize_types_casting": true,
"multiline_comment_opening_closing": true,
"multiline_whitespace_before_semicolons": true,
"types_spaces": {
"space": "none"
},
"native_function_casing": true,
"native_function_type_declaration_casing": true,
"new_with_parentheses": {
"anonymous_class": false,
"named_class": true
},
"no_empty_statement": true,
"no_trailing_comma_in_singleline": true,
"no_trailing_whitespace": true,
"no_trailing_whitespace_in_comment": true,
"return_type_declaration": true,
"unary_operator_spaces": true,
"trim_array_spaces": true,
"trailing_comma_in_multiline": true,
"ternary_to_null_coalescing": true,
"switch_case_space": true,
"method_argument_space": {
"keep_multiple_spaces_after_comma": true,
"on_multiline": "ensure_fully_multiline",
"attribute_placement": "same_line",
"after_heredoc": true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment