Skip to content

Commit

Permalink
Merge pull request #1583 from fey/add-prettier-blade
Browse files Browse the repository at this point in the history
add prettier for blade files
  • Loading branch information
fey authored Jul 27, 2023
2 parents 02ea9a3 + a0e9f41 commit ec9d06b
Show file tree
Hide file tree
Showing 56 changed files with 4,046 additions and 1,824 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ indent_size = 2
[*.{js,jsx,scss}]
indent_size = 2

[*.{blade.php}]
[*.blade.php]
indent_size = 2

[package.json]
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources/views/exercise/listing/*
resources/views/exercise/solution_stub/*
9 changes: 9 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
plugins:
- "@shufo/prettier-plugin-blade"
overrides:
- files:
- "*.blade.php"
options:
parser: blade
tabWidth: 2
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ lint: lint-js lint-php

lint-fix:
composer exec phpcbf -v
npx prettier --write resources/**/*.blade.php

test:
php artisan test
Expand Down
Loading

0 comments on commit ec9d06b

Please sign in to comment.