-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🎸 add option
--wrap-attributes-min-attrs
- Loading branch information
Showing
6 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
__tests__/fixtures/runtimeConfig/wrapAttributesMinAttrs/.prettierrc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"overrides": [ | ||
{ | ||
"files": ["*.blade.php"], | ||
"options": { | ||
"tabWidth": 4, | ||
"parser": "blade" | ||
} | ||
} | ||
], | ||
"wrapAttributes": "force-expand-multiline", | ||
"wrapAttributesMinAttrs": 0 | ||
} |
47 changes: 47 additions & 0 deletions
47
__tests__/fixtures/runtimeConfig/wrapAttributesMinAttrs/formatted.index.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
@extends('frontend.layouts.app') | ||
@section('head') | ||
@endsection | ||
@section('title') foo | ||
@endsection | ||
@section('content') | ||
<section | ||
id="content" | ||
> | ||
<div | ||
class="container mod-users-pd-h" | ||
> | ||
<div | ||
class="pf-user-header" | ||
> | ||
<div></div> | ||
<p>@lang('users.index')</p> | ||
</div> | ||
<div | ||
class="pf-users-branch" | ||
> | ||
<ul | ||
class="pf-users-branch__list" | ||
> | ||
@foreach ($tree as $users) | ||
<li> | ||
<img | ||
src="{{ asset('img/frontend/icon/branch-arrow.svg') }}" | ||
alt="branch_arrow" | ||
> | ||
{{ link_to_route('frontend.users.user.show', $users['name'], $users['_id']) }} | ||
</li> | ||
@endforeach | ||
</ul> | ||
<div | ||
class="pf-users-branch__btn" | ||
> | ||
@can('create', App\Models\User::class) | ||
{!! link_to_route('frontend.users.user.create', __('users.create'), [], ['class' => 'btn']) !!} | ||
@endcan | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
@endsection | ||
@section('footer') | ||
@stop |
32 changes: 32 additions & 0 deletions
32
__tests__/fixtures/runtimeConfig/wrapAttributesMinAttrs/index.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@extends('frontend.layouts.app') | ||
@section('head') | ||
@endsection | ||
@section('title') foo | ||
@endsection | ||
@section('content') | ||
<section id="content"> | ||
<div class="container mod-users-pd-h"> | ||
<div class="pf-user-header"> | ||
<div></div> | ||
<p>@lang('users.index')</p> | ||
</div> | ||
<div class="pf-users-branch"> | ||
<ul class="pf-users-branch__list"> | ||
@foreach($tree as $users) | ||
<li> | ||
<img src="{{ asset("img/frontend/icon/branch-arrow.svg") }}" alt="branch_arrow"> | ||
{{ link_to_route('frontend.users.user.show',$users["name"],$users['_id']) }} | ||
</li> | ||
@endforeach | ||
</ul> | ||
<div class="pf-users-branch__btn"> | ||
@can('create', App\Models\User::class) | ||
{!! link_to_route('frontend.users.user.create', __('users.create'), [], ['class' => 'btn']) !!} | ||
@endcan | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
@endsection | ||
@section('footer') | ||
@stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters