Skip to content

Instantly share code, notes, and snippets.

@tuffs
Created March 2, 2026 09:29
Show Gist options
  • Select an option

  • Save tuffs/fdd6b6f5c9a15f39bba07ddd63c20d5e to your computer and use it in GitHub Desktop.

Select an option

Save tuffs/fdd6b6f5c9a15f39bba07ddd63c20d5e to your computer and use it in GitHub Desktop.
Two Space Indents - Laravel App Setup
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.php]
indent_size = 2
indent_style = space
insert_final_newline = true
[*.blade.php]
indent_size = 2
indent_style = space
insert_final_newline = true
[*.{js,jsx,ts,tsx,cjs,mjs}]
indent_size = 2
indent_style = space
insert_final_newline = true
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
[*.{yml,yaml}]
indent_size = 2
[compose.yaml]
indent_size = 4
{
"preset": "psr12",
"rules": {
"indentation_type": {
"indent_type": "space",
"indent_size": 2
},
"line_ending": "\n"
}
}
@tuffs
Copy link
Author

tuffs commented Mar 2, 2026

Brings into Laravel a styling more akin to Ruby style guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment