Skip to content

Commit 104fb45

Browse files
Add EditorConfig and fix some whitespace issues (#2516)
* add editorconfig and fix some trailing whitespace * More Prettier tweaks * Fix code style --------- Co-authored-by: Pascal Baljet <[email protected]>
1 parent e734563 commit 104fb45

26 files changed

+38
-98
lines changed

playgrounds/react/.editorconfig renamed to .editorconfig

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@ root = true
33
[*]
44
charset = utf-8
55
end_of_line = lf
6-
indent_size = 4
6+
indent_size = 2
77
indent_style = space
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11-
[*.md]
12-
trim_trailing_whitespace = false
11+
[*.{php,xml,htaccess}]
12+
indent_size = 4
1313

14-
[*.{yml,yaml}]
14+
[*.blade.php]
1515
indent_size = 2
16-
17-
[docker-compose.yml]
18-
indent_size = 4

.github/ISSUE_TEMPLATE/0-bug-report.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Bug Report
2-
description: "Submit an issue."
2+
description: 'Submit an issue.'
33
body:
44
- type: markdown
55
attributes:
6-
value: "Please read [our full contribution guide](https://laravel.com/docs/contributions#bug-reports) before submitting bug reports."
6+
value: 'Please read [our full contribution guide](https://laravel.com/docs/contributions#bug-reports) before submitting bug reports.'
77
- type: checkboxes
88
attributes:
99
label: Inertia adapter(s) affected
@@ -15,7 +15,7 @@ body:
1515
- label: Not Applicable
1616
- type: input
1717
attributes:
18-
label: "JS package version"
18+
label: 'JS package version'
1919
description: Provide the version of `@inertiajs/{adapter}` you are using.
2020
placeholder: 2.0.0
2121
validations:

.github/ISSUE_TEMPLATE/1-bug-report-react.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: Bug Report - React
2-
description: "Submit a React related issue."
2+
description: 'Submit a React related issue.'
33
labels: [react]
44
body:
55
- type: markdown
66
attributes:
7-
value: "Please read [our full contribution guide](https://laravel.com/docs/contributions#bug-reports) before submitting bug reports."
7+
value: 'Please read [our full contribution guide](https://laravel.com/docs/contributions#bug-reports) before submitting bug reports.'
88
- type: input
99
attributes:
10-
label: "@inertiajs/react Version"
10+
label: '@inertiajs/react Version'
1111
description: Provide the version of `@inertiajs/react` you are using.
1212
placeholder: 2.0.0
1313
validations:

.github/ISSUE_TEMPLATE/2-bug-report-vue.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: Bug Report - Vue 3
2-
description: "Submit a Vue 3 related issue."
3-
labels: ["vue 3"]
2+
description: 'Submit a Vue 3 related issue.'
3+
labels: ['vue 3']
44
body:
55
- type: markdown
66
attributes:
7-
value: "Please read [our full contribution guide](https://laravel.com/docs/contributions#bug-reports) before submitting bug reports."
7+
value: 'Please read [our full contribution guide](https://laravel.com/docs/contributions#bug-reports) before submitting bug reports.'
88
- type: input
99
attributes:
10-
label: "@inertiajs/vue3 Version"
10+
label: '@inertiajs/vue3 Version'
1111
description: Provide the version of `@inertiajs/vue3` you are using.
1212
placeholder: 2.0.0
1313
validations:

.github/ISSUE_TEMPLATE/3-bug-report-svelte.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Bug Report - Svelte
2-
description: "Submit a Svelte related issue."
2+
description: 'Submit a Svelte related issue.'
33
labels: [svelte]
44
assignees:
55
- pedroborges
66
body:
77
- type: markdown
88
attributes:
9-
value: "Please read [our full contribution guide](https://laravel.com/docs/contributions#bug-reports) before submitting bug reports."
9+
value: 'Please read [our full contribution guide](https://laravel.com/docs/contributions#bug-reports) before submitting bug reports.'
1010
- type: input
1111
attributes:
12-
label: "@inertiajs/svelte Version"
12+
label: '@inertiajs/svelte Version'
1313
description: Provide the version of `@inertiajs/svelte` you are using.
1414
placeholder: 2.0.0
1515
validations:

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ contact_links:
88
about: 'This repository is only for reporting bugs. If you have a question or need help using the library, click:'
99
- name: Documentation issue
1010
url: https://github.com/inertiajs/inertiajs.com
11-
about: For documentation issues, open a pull request at the inertiajs/inertiajs.com repository
11+
about: For documentation issues, open a pull request at the inertiajs/inertiajs.com repository

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Please only send a pull request to branches which are currently supported: https://laravel.com/docs/releases#support-policy
2+
Please only send a pull request to branches which are currently supported: https://laravel.com/docs/releases#support-policy
33
44
If you are unsure which branch your pull request should be sent to, please read: https://laravel.com/docs/contributions#which-branch
55

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
- name: Commit linted files
2929
uses: stefanzweifel/git-auto-commit-action@v5
3030
with:
31-
commit_message: "Fix code style"
31+
commit_message: 'Fix code style'

.github/workflows/playwright.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-24.04
88
strategy:
99
matrix:
10-
adapter: ["vue", "react", "svelte"]
10+
adapter: ['vue', 'react', 'svelte']
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v4

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
/packages/svelte/test-app/vite.config.js.timestamp-*.mjs
55
/playwright-report
66
/test-results
7-
node_modules
7+
node_modules

0 commit comments

Comments
 (0)