Skip to content

Instantly share code, notes, and snippets.

@SerhiiCho
Last active May 27, 2024 03:49
Show Gist options
  • Save SerhiiCho/5c449d100ee2791cf732a013cad4e909 to your computer and use it in GitHub Desktop.
Save SerhiiCho/5c449d100ee2791cf732a013cad4e909 to your computer and use it in GitHub Desktop.
Configuration file for Laravel Pint
{
"preset": "psr12",
"rules": {
"is_null": true,
"declare_strict_types": true,
"strict_comparison": true,
"no_unused_imports": true,
"explicit_string_variable": true,
"native_function_casing": true,
"native_function_type_declaration_casing": true,
"ternary_to_null_coalescing": true,
"array_indentation": true,
"trim_array_spaces": true,
"ordered_imports": {
"sort_algorithm": "alpha"
},
"combine_consecutive_issets": true,
"combine_consecutive_unsets": true,
"no_multiline_whitespace_around_double_arrow": true,
"fully_qualified_strict_types": {
"leading_backslash_in_global_namespace": true,
"import_symbols": true
},
"method_chaining_indentation": true,
"php_unit_method_casing": {
"case": "camel_case"
},
"php_unit_test_annotation": {
"style": "prefix"
},
"global_namespace_import": {
"import_classes": true
},
"standardize_not_equals": true,
"no_empty_phpdoc": true,
"constant_case": {
"case": "lower"
},
"array_syntax": {
"syntax": "short"
},
"concat_space": {
"spacing": "one"
},
"list_syntax": {
"syntax": "short"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment