configuration options for out of the box .editorconfig #34
Labels
enhancement
New feature or request
passed-dev-qa
Optional state. Use this when QAing other peoples fixes in another branch.ready to be merged to main
Problem this feature will solve
Laravel forces 4 space indents in all files (PSR2). Javascript and other developers often want 2 spaces as the default and 4 spaces in *php files to conform to PSR2 or PSR12 standards. If a developer is not saavy on the
.editorconfig
system, they may wonder why some of their editor project settings (such astabSize
) are not being respsected.Background
Laravel is opinionated, it writes in a .editorconfig. Sometimes developers need more flexibility.
Proposed Solution
Add a configuration in
starter.ini
to leave the Laravel default.editorconfig
alone, use a pre-built .editorconfig that stick to PSR2/12 standards for all files but only php files use an indent of 4 spaces., or give the option to use not .editorconfig file at all (delete it).Constraints and Assumptions
Alternatives or Workarounds
This feature is only for developers that dont want to think about granular configuration of project wide editor formats.
The text was updated successfully, but these errors were encountered: