Skip to content

Commit 11fb668

Browse files
committed
style: format using dprint
1 parent 57795ab commit 11fb668

File tree

92 files changed

+657
-991
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+657
-991
lines changed

.commitlintrc.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"extends": ["@commitlint/config-conventional"],
3-
"rules": {
4-
"subject-case": [
5-
2,
6-
"never",
2+
"extends": ["@commitlint/config-conventional"],
3+
"rules": {
4+
"subject-case": [
5+
2,
6+
"never",
77
["sentence-case", "start-case", "pascal-case", "upper-case"]
8-
]
9-
}
8+
]
9+
}
1010
}

.github/workflows/close-stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ jobs:
2222
close-issue-message: "This issue was closed because it has been inactive for 1 day since being marked as stale."
2323
stale-pr-label: "Stale"
2424
stale-pr-message: "This pull request is stale because it has been open for 30 days with no activity."
25-
close-pr-message: "This pull request was closed because it has been inactive for 1 day since being marked as stale."
25+
close-pr-message: "This pull request was closed because it has been inactive for 1 day since being marked as stale."
2626
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/coding-conventions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66

77
jobs:
8-
check-style:
8+
check-style:
99
name: Run style check
1010
runs-on: ubuntu-latest
1111
steps:
@@ -22,7 +22,7 @@ jobs:
2222
composer update --prefer-dist --no-interaction
2323
composer mago:install-binary
2424
25-
- name: Run Mago
25+
- name: Run Mago
2626
run: |
2727
./vendor/bin/mago fmt --dry-run
2828
./vendor/bin/mago lint --reporting-format=github

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
uses: shimataro/ssh-key-action@v2
1313
with:
1414
key: ${{ secrets.SSH_KEY }}
15-
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
15+
known_hosts: "just-a-placeholder-so-we-dont-get-errors"
1616

1717
- name: Adding Known Hosts
1818
run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup PHP
2424
uses: shivammathur/setup-php@v2
2525
with:
26-
php-version: '8.4'
26+
php-version: "8.4"
2727
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
2828

2929
- name: Install dependencies

LICENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
66

77
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
88

9-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

bun.lock

Lines changed: 0 additions & 610 deletions
Large diffs are not rendered by default.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"assertchris/ellison": "^1.0.2"
1212
},
1313
"require-dev": {
14-
"phpunit/phpunit": "^12.2.3",
14+
"phpunit/phpunit": "^12.2.4",
1515
"symfony/var-dumper": "^7.3.0",
16-
"carthage-software/mago": "^0.24.5"
16+
"carthage-software/mago": "^0.25.0"
1717
},
1818
"autoload": {
1919
"psr-4": {

composer.lock

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dprint.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"useTabs": true,
3+
"typescript": {
4+
"semiColons": "asi",
5+
"quoteStyle": "preferSingle"
6+
},
7+
"malva": {
8+
"useTabs": true
9+
},
10+
"markup": {
11+
"printWidth": 100,
12+
"preferAttrsSingleLine": true,
13+
"vBindStyle": "short",
14+
"vOnStyle": "short",
15+
"vForDelimiterStyle": "in",
16+
"vSlotStyle": "vSlot",
17+
"vBindSameNameShortHand": true,
18+
"component.selfClosing": true,
19+
"html.normal.selfClosing": true,
20+
"html.void.selfClosing": true,
21+
"svg.selfClosing": true,
22+
"formatComments": true
23+
},
24+
"exec": {
25+
"cwd": "${configDir}",
26+
"commands": [{
27+
"command": "./vendor/bin/mago fmt --stdin-input",
28+
"exts": ["php"]
29+
}]
30+
},
31+
"excludes": [
32+
"**/.tempest",
33+
"**/composer.json",
34+
"**/node_modules",
35+
"**/bun.lock",
36+
"**/vendor",
37+
"public/**/*.min.js",
38+
"tests/**/*.{html,twig,json,yml,yaml}",
39+
"CHANGELOG.md"
40+
],
41+
"plugins": [
42+
"https://plugins.dprint.dev/typescript-0.95.7.wasm",
43+
"https://plugins.dprint.dev/json-0.20.0.wasm",
44+
"https://plugins.dprint.dev/markdown-0.18.0.wasm",
45+
"https://plugins.dprint.dev/toml-0.7.0.wasm",
46+
"https://plugins.dprint.dev/g-plane/malva-v0.12.1.wasm",
47+
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.22.0.wasm",
48+
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm",
49+
"https://plugins.dprint.dev/exec-0.5.1.json@492414e39dea4dccc07b4af796d2f4efdb89e84bae2bd4e1e924c0cc050855bf"
50+
]
51+
}

eslint.config.mjs

Lines changed: 0 additions & 6 deletions
This file was deleted.

mago.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,25 @@ php_version = "8.4.0"
44
paths = ["src"]
55
includes = ["vendor"]
66
excludes = [
7-
"./vendor/symfony/cache/Traits/ValueWrapper.php",
8-
"./vendor/composer",
7+
"./vendor/symfony/cache/Traits/ValueWrapper.php",
8+
"./vendor/composer",
99
]
1010

1111
[format]
1212
print_width = 180
1313
tab_width = 4
1414
use_tabs = false
15-
space_after_not_operator = true
15+
space_after_logical_not_unary_prefix_operator = true
1616
null_type_hint = "question"
17-
space_before_arrow_function_params = true
17+
space_before_arrow_function_parameter_list_parenthesis = true
1818
always_break_named_arguments_list = false
1919
preserve_breaking_member_access_chain = true
2020
preserve_breaking_argument_list = true
2121
preserve_breaking_array_like = true
2222
preserve_breaking_parameter_list = true
2323
preserve_breaking_attribute_list = true
2424
preserve_breaking_conditional_expression = true
25+
empty_line_after_opening_tag = false
2526

2627
[linter]
2728
default_plugins = true

package.json

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
{
2-
"type": "module",
3-
"scripts": {
4-
"dev": "vite",
5-
"build": "vite build"
6-
},
7-
"dependencies": {
8-
"highlight.js": "^11.11.1",
9-
"puppeteer": "^24.10.2"
10-
},
11-
"devDependencies": {
12-
"@fontsource-variable/kantumruy-pro": "^5.2.6",
13-
"@fontsource-variable/public-sans": "^5.2.6",
14-
"@innocenzi/eslint-config": "^0.22.8",
15-
"@tailwindcss/typography": "^0.5.16",
16-
"@tailwindcss/vite": "^4.1.11",
17-
"@vitejs/plugin-vue": "^6.0.0",
18-
"@vueuse/core": "^13.4.0",
19-
"eslint": "^9.29.0",
20-
"fuse.js": "^7.1.0",
21-
"reka-ui": "^2.3.1",
22-
"tailwindcss": "^4.1.11",
23-
"typescript": "^5.8.3",
24-
"vite": "^6.3.5",
25-
"vite-plugin-tempest": "^0.0.2",
26-
"vue": "^3.5.17"
27-
}
2+
"type": "module",
3+
"scripts": {
4+
"dev": "vite",
5+
"build": "vite build",
6+
"fmt": "dprint fmt"
7+
},
8+
"dependencies": {
9+
"highlight.js": "^11.11.1",
10+
"puppeteer": "^24.10.2"
11+
},
12+
"devDependencies": {
13+
"@fontsource-variable/kantumruy-pro": "^5.2.6",
14+
"@fontsource-variable/public-sans": "^5.2.6",
15+
"@tailwindcss/typography": "^0.5.16",
16+
"@tailwindcss/vite": "^4.1.11",
17+
"@vitejs/plugin-vue": "^6.0.0",
18+
"@vueuse/core": "^13.4.0",
19+
"fuse.js": "^7.1.0",
20+
"reka-ui": "^2.3.1",
21+
"tailwindcss": "^4.1.11",
22+
"typescript": "^5.8.3",
23+
"vite": "^6.3.5",
24+
"vite-plugin-tempest": "^0.0.2",
25+
"vue": "^3.5.17"
26+
}
2827
}

phpunit.xml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd"
5-
bootstrap="vendor/autoload.php"
6-
colors="true"
7-
displayDetailsOnTestsThatTriggerDeprecations="true"
8-
displayDetailsOnTestsThatTriggerErrors="true"
9-
displayDetailsOnTestsThatTriggerNotices="true"
10-
displayDetailsOnTestsThatTriggerWarnings="true"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd"
5+
bootstrap="vendor/autoload.php"
6+
colors="true"
7+
displayDetailsOnTestsThatTriggerDeprecations="true"
8+
displayDetailsOnTestsThatTriggerErrors="true"
9+
displayDetailsOnTestsThatTriggerNotices="true"
10+
displayDetailsOnTestsThatTriggerWarnings="true"
1111
>
12-
<testsuites>
13-
<testsuite name="Unit">
14-
<directory suffix="Test.php">./tests</directory>
15-
</testsuite>
16-
</testsuites>
17-
<coverage/>
18-
<source>
19-
<include>
20-
<directory suffix=".php">./app</directory>
21-
</include>
22-
</source>
12+
<testsuites>
13+
<testsuite name="Unit">
14+
<directory suffix="Test.php">./tests</directory>
15+
</testsuite>
16+
</testsuites>
17+
<coverage />
18+
<source>
19+
<include>
20+
<directory suffix=".php">./app</directory>
21+
</include>
22+
</source>
2323
</phpunit>

public/img/github.svg

Lines changed: 15 additions & 3 deletions
Loading

0 commit comments

Comments
 (0)