Skip to content

Commit 95e161d

Browse files
committed
feat: add mago formatter default configuration
1 parent a9eb760 commit 95e161d

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
php_version = "8.2"
2+
3+
[source]
4+
paths = [
5+
"src/",
6+
"config/",
7+
"bin/",
8+
# "tests/",
9+
# "importmap.php",
10+
# "migrations/",
11+
]
12+
includes = ["vendor"]
13+
excludes = []
14+
15+
[format]
16+
print_width = 120
17+
tab_width = 4
18+
use_tabs = false
19+
20+
# [linter]
21+
# default_plugins = true
22+
# plugins = ["symfony"]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"aliases": "mago",
3+
"copy-from-recipe": {
4+
"mago.toml": "mago.toml"
5+
},
6+
"composer-commands": {
7+
"format": "mago fmt"
8+
}
9+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<bg=blue;fg=white> </>
2+
<bg=blue;fg=white> What's next? </>
3+
<bg=blue;fg=white> </>
4+
5+
* <fg=blue>Review</> your <comment>mago.toml</> file:
6+
1. Set your exact <comment>php_version</>
7+
2. Update your <comment>source.paths</> as needed;
8+
3. (Optional) Enable the <comment>linter</> as well.
9+
10+
* <fg=blue>Read</> full the documentation at <comment>https://mago.carthage.software/#/getting-started/configuration</>

0 commit comments

Comments
 (0)