Skip to content

Instantly share code, notes, and snippets.

@sunaoka
Created November 30, 2023 09:33
Show Gist options
  • Select an option

  • Save sunaoka/0cf86f091fc397095184b30a85ac733e to your computer and use it in GitHub Desktop.

Select an option

Save sunaoka/0cf86f091fc397095184b30a85ac733e to your computer and use it in GitHub Desktop.
{
"// Pint preset": "https://github.com/laravel/pint/blob/main/resources/presets/laravel.php",
"// PHP-CS-Fixer Configurator": "https://mlocati.github.io/php-cs-fixer-configurator",
"// binary_operator_spaces": "配列の => でキーと値のペアをそろえる",
"// blank_line_before_statement": "return や continue の前に空行は不要",
"// no_extra_blank_lines": "余分な空白行や空白行を削除(デフォルトの throw を外す。cache の直前の throw の空行が削除されるため)",
"// declare_strict_types": "declare(strict_types=1); を追加",
"// explicit_string_variable": "文字列に埋め込まれている変数を {} で囲む",
"preset": "laravel",
"cache-file": ".build/pint-cache.json",
"rules": {
"binary_operator_spaces": {
"default": "single_space",
"operators": {
"=>": "align_single_space_minimal"
}
},
"blank_line_before_statement": {
"statements": []
},
"no_extra_blank_lines": {
"tokens": [
"extra",
"use"
]
},
"declare_strict_types": true,
"explicit_string_variable": true
},
"exclude": [
"config",
"lang",
"bootstrap",
"public"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment