Skip to content

Commit 8ba03da

Browse files
committed
feat: add prettier
1 parent 07a0487 commit 8ba03da

20 files changed

+8540
-9276
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ 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

.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ module.exports = {
4040
React: true,
4141
JSX: true,
4242
},
43-
};
43+
}

.github/issue-branch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
branchName: "is-${issue.number}-${issue.title}"
2-
commentMessage: "Branch ${branchName} created for issue: ${issue.title}"
1+
branchName: 'is-${issue.number}-${issue.title}'
2+
commentMessage: 'Branch ${branchName} created for issue: ${issue.title}'

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Description
22

3-
Please include a summary of the changes and the related issue.
3+
Please include a summary of the changes and the related issue.
44

55
Fixes #(issue)
66

.github/workflows/Laravel-Test.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,31 @@ jobs:
1616
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
1717

1818
steps:
19-
- uses: actions/checkout@v2
20-
with:
21-
fetch-depth: 1
22-
23-
- name: Cache composer dependencies
24-
uses: actions/cache@v2
25-
with:
26-
path: vendor
27-
key: composer-${{ hashFiles('**/composer.lock') }}
28-
restore-keys: |
29-
composer-
30-
31-
- name: Install PHP
32-
uses: shivammathur/setup-php@v2
33-
with:
34-
php-version: 8.2
35-
36-
- name: Install composer dependencies
37-
run: |
38-
composer install --no-scripts
39-
40-
- name: Prepare Laravel Application
41-
run: |
42-
cp .env.example .env
43-
php artisan key:generate
44-
45-
- name: Run Test suite
46-
run: php artisan test
19+
- uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 1
22+
23+
- name: Cache composer dependencies
24+
uses: actions/cache@v2
25+
with:
26+
path: vendor
27+
key: composer-${{ hashFiles('**/composer.lock') }}
28+
restore-keys: |
29+
composer-
30+
31+
- name: Install PHP
32+
uses: shivammathur/setup-php@v2
33+
with:
34+
php-version: 8.2
35+
36+
- name: Install composer dependencies
37+
run: |
38+
composer install --no-scripts
39+
40+
- name: Prepare Laravel Application
41+
run: |
42+
cp .env.example .env
43+
php artisan key:generate
44+
45+
- name: Run Test suite
46+
run: php artisan test
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: "Issue AutoLink"
1+
name: 'Issue AutoLink'
22

33
on:
44
pull_request:
55
types: [opened]
66

77
jobs:
88
issue-links:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: tkt-actions/add-issue-links@v1.6.0
12-
with:
13-
repo-token: ${{ secrets.GITHUB_TOKEN }}
14-
branch-prefix: "is-"
15-
resolve: true
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: tkt-actions/add-issue-links@v1.6.0
12+
with:
13+
repo-token: ${{ secrets.GITHUB_TOKEN }}
14+
branch-prefix: 'is-'
15+
resolve: true

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
. "$(dirname -- "$0")/_/husky.sh"
33

44
yarn lint-staged
5+
yarn prettierrc
6+
composer format

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"printWidth": 80,
5+
"tabWidth": 2,
6+
"trailingComma": "all",
7+
"endOfLine": "auto"
8+
}

commitlint.config.js

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
module.exports = {
2-
extends: ["@commitlint/config-conventional"],
3-
rules: {
4-
"type-enum": [
5-
2,
6-
"always",
7-
[
8-
"feat",
9-
"fix",
10-
"docs",
11-
"chore",
12-
"style",
13-
"refactor",
14-
"ci",
15-
"test",
16-
"revert",
17-
"perf",
18-
"vercel",
19-
],
20-
],
21-
},
22-
};
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'type-enum': [
5+
2,
6+
'always',
7+
[
8+
'feat',
9+
'fix',
10+
'docs',
11+
'chore',
12+
'style',
13+
'refactor',
14+
'ci',
15+
'test',
16+
'revert',
17+
'perf',
18+
'vercel',
19+
'trigger',
20+
],
21+
],
22+
},
23+
}

composer.json

Lines changed: 73 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,75 @@
11
{
2-
"name": "laravel/laravel",
3-
"type": "project",
4-
"description": "The skeleton application for the Laravel framework.",
5-
"keywords": ["laravel", "framework"],
6-
"license": "MIT",
7-
"require": {
8-
"php": "^8.1",
9-
"guzzlehttp/guzzle": "^7.2",
10-
"laravel/framework": "^10.10",
11-
"laravel/sanctum": "^3.3",
12-
"laravel/tinker": "^2.8"
13-
},
14-
"require-dev": {
15-
"ekino/phpstan-banned-code": "^1.0",
16-
"fakerphp/faker": "^1.9.1",
17-
"friendsofphp/php-cs-fixer": "^3.40",
18-
"larastan/larastan": "^2.7",
19-
"laravel/pint": "^1.13",
20-
"laravel/sail": "^1.18",
21-
"mockery/mockery": "^1.4.4",
22-
"nunomaduro/collision": "^7.0",
23-
"phpstan/phpstan": "^1.10",
24-
"phpstan/phpstan-deprecation-rules": "^1.1",
25-
"phpunit/phpunit": "^10.1",
26-
"spatie/laravel-ignition": "^2.0"
27-
},
28-
"autoload": {
29-
"psr-4": {
30-
"App\\": "app/",
31-
"Database\\Factories\\": "database/factories/",
32-
"Database\\Seeders\\": "database/seeders/"
33-
}
34-
},
35-
"autoload-dev": {
36-
"psr-4": {
37-
"Tests\\": "tests/"
38-
}
39-
},
40-
"scripts": {
41-
"post-autoload-dump": [
42-
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
43-
"@php artisan package:discover --ansi"
44-
],
45-
"post-update-cmd": [
46-
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
47-
],
48-
"post-root-package-install": [
49-
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
50-
],
51-
"post-create-project-cmd": [
52-
"@php artisan key:generate --ansi"
53-
]
54-
},
55-
"extra": {
56-
"laravel": {
57-
"dont-discover": []
58-
}
59-
},
60-
"config": {
61-
"optimize-autoloader": true,
62-
"preferred-install": "dist",
63-
"sort-packages": true,
64-
"allow-plugins": {
65-
"pestphp/pest-plugin": true,
66-
"php-http/discovery": true
67-
}
68-
},
69-
"minimum-stability": "stable",
70-
"prefer-stable": true
2+
"name": "laravel/laravel",
3+
"type": "project",
4+
"description": "The skeleton application for the Laravel framework.",
5+
"keywords": [
6+
"laravel",
7+
"framework"
8+
],
9+
"license": "MIT",
10+
"require": {
11+
"php": "^8.1",
12+
"guzzlehttp/guzzle": "^7.2",
13+
"laravel/framework": "^10.10",
14+
"laravel/sanctum": "^3.3",
15+
"laravel/tinker": "^2.8"
16+
},
17+
"require-dev": {
18+
"ekino/phpstan-banned-code": "^1.0",
19+
"fakerphp/faker": "^1.9.1",
20+
"friendsofphp/php-cs-fixer": "^3.40",
21+
"larastan/larastan": "^2.7",
22+
"laravel/pint": "^1.13",
23+
"laravel/sail": "^1.18",
24+
"mockery/mockery": "^1.4.4",
25+
"nunomaduro/collision": "^7.0",
26+
"phpstan/phpstan": "^1.10",
27+
"phpstan/phpstan-deprecation-rules": "^1.1",
28+
"phpunit/phpunit": "^10.1",
29+
"spatie/laravel-ignition": "^2.0"
30+
},
31+
"autoload": {
32+
"psr-4": {
33+
"App\\": "app/",
34+
"Database\\Factories\\": "database/factories/",
35+
"Database\\Seeders\\": "database/seeders/"
36+
}
37+
},
38+
"autoload-dev": {
39+
"psr-4": {
40+
"Tests\\": "tests/"
41+
}
42+
},
43+
"scripts": {
44+
"post-autoload-dump": [
45+
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
46+
"@php artisan package:discover --ansi"
47+
],
48+
"post-update-cmd": [
49+
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
50+
],
51+
"post-root-package-install": [
52+
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
53+
],
54+
"post-create-project-cmd": [
55+
"@php artisan key:generate --ansi"
56+
],
57+
"format": "php-cs-fixer fix"
58+
},
59+
"extra": {
60+
"laravel": {
61+
"dont-discover": []
62+
}
63+
},
64+
"config": {
65+
"optimize-autoloader": true,
66+
"preferred-install": "dist",
67+
"sort-packages": true,
68+
"allow-plugins": {
69+
"pestphp/pest-plugin": true,
70+
"php-http/discovery": true
71+
}
72+
},
73+
"minimum-stability": "stable",
74+
"prefer-stable": true
7175
}

0 commit comments

Comments
 (0)