Skip to content

Instantly share code, notes, and snippets.

@anuzpandey
Created January 4, 2024 17:02
Show Gist options
  • Save anuzpandey/e4bec40c0a16ffb9bce160681ffb5435 to your computer and use it in GitHub Desktop.
Save anuzpandey/e4bec40c0a16ffb9bce160681ffb5435 to your computer and use it in GitHub Desktop.
Laravel Pint Configuration
{
"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,
"combine_consecutive_issets": true,
"combine_consecutive_unsets": true,
"no_multiline_whitespace_around_double_arrow": true,
"fully_qualified_strict_types": 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