Skip to content

Commit ce4e5c0

Browse files
Merge pull request #21 from Laravel-Lang/code-style-8cegyne
The code style has been fixed
2 parents a017d1a + 9ebe9a2 commit ce4e5c0

File tree

3 files changed

+139
-0
lines changed

3 files changed

+139
-0
lines changed

biome.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": false
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"includes": [
11+
"**",
12+
"!node_modules",
13+
"!vendor",
14+
"!composer.lock",
15+
"!package-lock.json"
16+
]
17+
},
18+
"formatter": {
19+
"enabled": true,
20+
"indentStyle": "space",
21+
"indentWidth": 4
22+
},
23+
"linter": {
24+
"enabled": true,
25+
"rules": {
26+
"recommended": true
27+
}
28+
},
29+
"javascript": {
30+
"formatter": {
31+
"quoteStyle": "double"
32+
}
33+
},
34+
"json": {
35+
"formatter": {
36+
"enabled": true,
37+
"bracketSpacing": true,
38+
"expand": "always"
39+
},
40+
"parser": {
41+
"allowComments": true
42+
}
43+
},
44+
"assist": {
45+
"enabled": true,
46+
"actions": {
47+
"source": {
48+
"organizeImports": "on"
49+
}
50+
}
51+
}
52+
}

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"dragon-code/codestyler": true,
4040
"ergebnis/composer-normalize": true,
4141
"friendsofphp/php-cs-fixer": true,
42+
"laravel/pint": true,
4243
"symfony/thanks": true
4344
}
4445
}

pint.json

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"preset": "laravel",
3+
"exclude": [
4+
"tests/Fixtures"
5+
],
6+
"rules": {
7+
"@PHP71Migration": true,
8+
"@PHP73Migration": true,
9+
"@PHP74Migration": true,
10+
"@PHP80Migration": true,
11+
"@PHP81Migration": true,
12+
"@PHP82Migration": true,
13+
"concat_space": {
14+
"spacing": "one"
15+
},
16+
"blank_line_before_statement": {
17+
"statements": [
18+
"declare",
19+
"phpdoc",
20+
"continue",
21+
"return"
22+
]
23+
},
24+
"class_attributes_separation": {
25+
"elements": {
26+
"case": "none",
27+
"const": "none",
28+
"method": "one",
29+
"property": "one",
30+
"trait_import": "none"
31+
}
32+
},
33+
"class_definition": {
34+
"multi_line_extends_each_single_line": true,
35+
"single_item_single_line": true,
36+
"single_line": true,
37+
"space_before_parenthesis": true
38+
},
39+
"combine_consecutive_issets": true,
40+
"combine_consecutive_unsets": true,
41+
"braces_position": {
42+
"allow_single_line_anonymous_functions": true,
43+
"allow_single_line_empty_anonymous_classes": true,
44+
"anonymous_classes_opening_brace": "same_line"
45+
},
46+
"escape_implicit_backslashes": {
47+
"double_quoted": true,
48+
"heredoc_syntax": true,
49+
"single_quoted": false
50+
},
51+
"global_namespace_import": {
52+
"import_classes": true,
53+
"import_constants": true,
54+
"import_functions": true
55+
},
56+
"multiline_comment_opening_closing": true,
57+
"no_superfluous_elseif": true,
58+
"no_useless_else": true,
59+
"operator_linebreak": {
60+
"only_booleans": false
61+
},
62+
"ordered_types": {
63+
"null_adjustment": "always_last",
64+
"sort_algorithm": "alpha"
65+
},
66+
"phpdoc_line_span": {
67+
"const": "single",
68+
"method": "multi",
69+
"property": "single"
70+
},
71+
"return_assignment": true,
72+
"simplified_if_return": true,
73+
"phpdoc_param_order": true,
74+
"fully_qualified_strict_types": true,
75+
"declare_strict_types": true,
76+
"types_spaces": {
77+
"space_multiple_catch": "none"
78+
},
79+
"binary_operator_spaces": {
80+
"default": "align_single_space_minimal"
81+
},
82+
"php_unit_method_casing": {
83+
"case": "camel_case"
84+
}
85+
}
86+
}

0 commit comments

Comments
 (0)