包详细信息

@shufo/prettier-plugin-blade

shufo44.9kMIT1.15.3

  • Automatically indent markup inside directives - Automatically add spacing to blade template markers - PHP 8 syntax support (null safe operator, named arguments) - Compliant to PSR-2 coding standard (PHP code inside directives) - Automatically sort Tailw

prettier, blade, formatter, laravel

自述文件

Prettier PHP

Prettier Blade Plugin

GitHub Workflow Status npm version

Format your blade template using Prettier

Features

  • Automatically indent markup inside directives
  • Automatically add spacing to blade template markers
  • PHP 8 syntax support (null safe operator, named arguments)
  • Compliant to PSR-2 coding standard (PHP code inside directives)
  • Automatically sort Tailwind CSS classes with respect of tailwind.config.js

Installation

$ npm install --save-dev @shufo/prettier-plugin-blade prettier

# yarn
$ yarn add -D @shufo/prettier-plugin-blade prettier

# pnpm
$ pnpm add -D @shufo/prettier-plugin-blade prettier

then, add in your Prettier configuration:

{
  "plugins": ["@shufo/prettier-plugin-blade"],
  "overrides": [
    {
      "files": ["*.blade.php"],
      "options": {
        "parser": "blade",
        "tabWidth": 4
      }
    }
  ]
}

Prettier version Compatibilitiy

Prettier Package
3.x ^1.9.x
2.x 1.8.x

Usage (CLI)

$ ./node_modules/.bin/prettier --write resources/**/*.blade.php

https://user-images.githubusercontent.com/1641039/151354641-6305805e-8e0c-4226-8331-64195f85160e.mp4

Example

Input

@extends('frontend.layouts.app')
@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($users as $user)
        <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'),[1,2,3],['class' => 'btn']) !!}
            @endcan
        </div>
  </div>
    </div>
</section>
@endsection
@section('footer')
@stop

Output

@extends('frontend.layouts.app')
@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 ($users as $user)
                        <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'), [1, 2, 3], ['class' => 'btn']) !!}
                    @endcan
                </div>
            </div>
        </div>
    </section>
@endsection
@section('footer')
@stop

Options

You can use these options for prettier blade plugin in prettier CLI.

key description
--tab-width Number of spaces per indentation level. default: 4
--print-width The line length where Prettier will try wrap. default: 120
--wrap-attributes The way to wrap attributes. [auto\ force\ force-aligned\ force-expand-multiline\ aligned-multiple\ preserve\ preserve-aligned]. default: auto
--wrap-attributes-min-attrs Minimum number of html tag attributes for force wrap attribute options. Wrap the first attribute only if 'force-expand-multiline' is specified in wrap attributes. default: 2.
--end-with-new-line End output with newline. default: true
--sort-tailwindcss-classes Sort Tailwind CSS classes. It will automatically look for and respect tailwind.config.js if it exists. default: false
--tailwindcss-config-path Path to your custom Tailwind configuration file. This option is only available if --sort-tailwindcss-classes is present. default: ''
--sort-html-attributes Sort HTML Attributes in the specified order. [none \ alphabetical \ code-guide \ idiomatic \ vuejs] default: none
--no-php-syntax-check Disable PHP syntax checking. default: false
--extra-liners Comma separated list of tags that should have an extra newline before them. default: head,body,/html
--trailing-comma-php If set to false, no trailing commas are printed for php expression. default: true
--component-prefix Comma separated list of component prefix use to preserve style in html attributes. default: x-,livewire:

.prettierrc example

{
  "printWidth": 120,
  "tabWidth": 4,
  "wrapAttributes": "auto",
  "wrapAttributesMinAttrs": 2,
  "sortTailwindcssClasses": true,
  "sortHtmlAttributes": "none",
  "noPhpSyntaxCheck": false,
  "indentInnerHtml": true,
  "extraLiners": "",
  "trailingCommaPHP": true,
  "componentPrefix": "x-,livewire:"
}

Disabling format in file

To disable formatting in your file, you can use blade/html comments in the following format:

{{-- prettier-ignore-start --}}
    {{ $foo }}
    {{ $bar }}
{{-- prettier-ignore-end --}}

or

<!-- prettier-ignore-start -->
    {{ $foo }}
    {{ $bar }}
<!-- prettier-ignore-end -->

To disable formatting on a specific line, you can use comment in the following format:

{{-- prettier-ignore --}}
    {{ $foo }}

or

<!-- prettier-ignore -->
    {{ $foo }}

Editor Integration

The editors below are confirmed to work with this plugin.

VSCode

You can use Prettier extension for VSCode to format blade in VSCode. You need to install this plugin as a local dependency. see https://github.com/prettier/prettier-vscode#prettier-resolution

If you want to use a formatter without Prettier, please consider to use the vscode-blade-formatter instead.

Vim

You can use coc-prettier plugin on coc.nvim

If you want to use formater without Prettier, please consider to using coc-blade

JetBrains WebStorm, PHPStorm, PyCharm...

You can use the Prettier Plugin for JetBrains IDE.

Add extension setting blade.php to File | Settings | Languages & Frameworks | JavaScript | Prettier | Run for files:

e.g.

{**/*,*}.{js,ts,jsx,tsx,blade.php}

and turn on checkbox On 'Reformat Code' action

Restart your IDE if you get the error: 'Prettier: File *.php has unsupported type'

Limitation

This plugin is based on blade-formatter which does not generate ASTs with lexer, so it might break indentation on complex blade.

Like:

  • The mix of open/closed HTML tag and directives

❌ Example of unexpected code

@if ($user)
    <div>
    @else
    </div>
@endif

⭕ Example of expected code

@if ($user)
    <div>foo</div>
@else
    <div>bar</div>
@endif

Please keep the blade template as simple as possible for better formatting.

API

You can format the blade file programmatically using Prettier's API

// CommonJS
const prettier = require("prettier");

const input = `
<div>
  @if ($user)
  {{ $foo }}
  @else
  {{ $bar }}
  @endif
</div>
`;

const res = await prettier.format(input, { parser: "blade" });
console.log(res);
// =>
//<div>
//    @if ($user)
//        {{ $foo }}
//    @else
//        {{ $bar }}
//    @endif
//</div>

// ES Module
import * as prettier from "prettier";

const input = `
<div>
  @if ($user)
  {{ $foo }}
  @else
  {{ $bar }}
  @endif
</div>
`;
const res = await prettier.format(input, { parser: "blade" });
console.log(res);

Development

$ yarn install
$ yarn run watch # watch changes

Testing

$ yarn install
$ yarn run test

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Contributors

shufo
Shuhei Hayashibara
howdu
Beej
ianjamieson
Ian Jamieson
mortenscheel
Morten Scheel
nessimabadi
Nessim Abadi
vuolter
Walter Purcaro

LICENSE

MIT

更新日志

Changelog

1.15.3 (2025-02-08)

Miscellaneous

  • 🤖 bump blade-formatter to 1.42.2 (117febf)
  • deps: update dependency esbuild to ^0.25.0 (58779a7)
  • deps: update dependency vitest to v3.0.5 [security] (fc2088f)

1.15.2 (2025-01-25)

Miscellaneous

  • 🤖 bump blade-formatter to 1.42.1 (94ce0af)
  • deps: update dependency vitest to v3 (a3ea4b3)

1.15.1 (2024-12-26)

Fixes

  • 🐛 default value has different value with base library (eb8ed5d)

1.15.0 (2024-12-22)

Miscellaneous

1.14.3 (2024-12-22)

Miscellaneous

  • 🤖 bump create release node version to 22.x (0855cd9)

1.14.2 (2024-12-22)

Fixes

  • deps: update dependency blade-formatter to v1.42.0 (3806a63)
  • deps: update dependency prettier to v3.4.2 (555dcde)

Miscellaneous

  • 🤖 add biomejs to dependencies (9469060)
  • 🤖 add config for biomejs (4a6a33c)
  • 🤖 add Vitest to dev dependencies (a638607)
  • 🤖 remove eslint related dependencies (2c226e8)
  • 🤖 remove jest related dependencies (a7ea5fa)
  • deps: update all minor update of dev dependencies (91a1b35)
  • deps: update codecov/codecov-action action to v5 (f6352f1)
  • deps: update dependency vitest to v2 (f887c23)

1.14.1 (2024-02-25)

Miscellaneous

  • 🤖 add config for release please action (d4bafd3)
  • 🤖 bump blade-formatter to 1.41.1 (171ef42)

1.14.0 (2024-02-20)

Miscellaneous Chores

1.13.5 (2024-02-06)

Miscellaneous

  • 🤖 bump blade-formatter to 1.40.1 (4eec5c7)
  • 🤖 bump prettier to 3.2.5 (028b7e7)
  • 🤖 update dependencies lock (0348835)
  • deps: update actions/cache action to v4 (5f19c2f)
  • deps: update actions/stale action to v9 (b7e438c)
  • deps: update codecov/codecov-action action to v4 (a9f2fa0)

1.13.4 (2023-11-05)

Miscellaneous

  • 🤖 bump blade-formatter to 1.38.6 (6088e8e)
  • deps: update actions/setup-node action to v4 (374fb00)

1.13.3 (2023-10-16)

Miscellaneous

  • 🤖 bump blade-formatter to 1.38.5 (3b5ea17)

1.13.2 (2023-10-15)

Miscellaneous

  • 🤖 bump blade-formatter to 1.38.4 (6324102)

1.13.1 (2023-10-09)

Miscellaneous

  • 🤖 bump blade-formatter to 1.38.3 (6621229)

1.13.0 (2023-10-09)

Features

  • 🎸 add option --php-version (a57f9ef)

1.12.0 (2023-10-09)

Features

  • 🎸 add option --trailint-comma-php (b3f7bf2)

Fixes

  • deps: update dependency prettier to v3.0.3 (4b7d1b2)

Miscellaneous

  • 🤖 bump blade-formatter to 1.38.0 (d460efa)
  • 🤖 bump blade-formatter to 1.38.1 (beffaec)
  • 🤖 bump blade-formatter to 1.38.2 (a9e9da5)
  • deps: update actions/checkout action to v4 (9c975cd)

1.11.1 (2023-08-21)

Fixes

  • deps: update dependency prettier to v3.0.2 (006a2c6)

Miscellaneous

  • 🤖 add vscode task.json (091c063)
  • 🤖 bump blade-formatter to 1.37.1 (300a275)
  • deps: update dependency esbuild to ^0.19.0 (2541c88)

1.11.0 (2023-08-11)

Features

  • 🎸 add option --extra-liners (941f865)
  • 🎸 add option --indent-inner-html (e683542)
  • 🎸 add option --wrap-attributes-min-attrs (9099b45)

Fixes

  • deps: update dependency prettier to v3.0.1 (1cf7a72)

Miscellaneous

  • 🤖 bump blade-formatter to 1.37.0 (ae03cb8)
  • deps: update pozil/auto-assign-issue action to v1.12.0 (d8df24e)

1.10.1 (2023-07-27)

Miscellaneous

  • 🤖 bump blade-formatter to 1.34.1 (5c395f5)
  • 🤖 bump blade-formatter to 1.35.0 (30b4d6b)
  • 🤖 bump blade-formatter to 1.35.1 (8cc55fc)
  • 🤖 bump blade-formatter to 1.36.0 (7669307)
  • 🤖 remove synckit from dependencies (55f1e20)

1.10.0 (2023-07-17)

Features

Miscellaneous

  • 🤖 bump blade-formatter to 1.34.0 (b007d5c)

1.9.2 (2023-07-06)

Miscellaneous

  • 🤖 bump blade-formatter to 1.33.1 (fced774)

1.9.1 (2023-07-05)

Fixes

Miscellaneous

  • 🤖 bump prettier to 3.0.0 (69978dc)

1.8.13 (2023-06-12)

Miscellaneous

  • 🤖 bump blade-formatter to 1.32.13 (d81d386)
  • deps: update dependency esbuild to ^0.18.0 (8cd9dbc)

1.8.12 (2023-04-02)

Miscellaneous

  • 🤖 bump blade-formatter to 1.32.12 (47f4366)
  • deps: update actions/stale action to v8 (b275361)

1.8.11 (2023-03-22)

Miscellaneous

  • 🤖 bump blade-formatter to 1.32.10 (5a4491e)
  • deps: update dependency typescript to v5 (33d36f5)

1.8.10 (2023-02-25)

Miscellaneous

  • 🤖 bump blade-formatter to 1.32.9 (ed9c628)

1.8.9 (2023-02-23)

Miscellaneous

  • 🤖 bump blade-formatter to 1.32.8 (2ef11ba)

1.8.8 (2023-02-12)

Miscellaneous

  • 🤖 bump blade-formatter to 1.32.7 (b647e2c)

1.8.7 (2023-02-05)

Miscellaneous

  • 🤖 bump blade-formatter to 1.32.6 (93946eb)
  • deps: bump synckit from 0.8.4 to 0.8.5 (b59e641)

1.8.6 (2023-01-20)

Miscellaneous

  • 🤖 bump blade-formatter to 1.32.5 (d8c9ea4)

1.8.5 (2023-01-14)

Miscellaneous

  • 🤖 bump blade-formatter to 1.32.4 (97a17f4)
  • deps: bump json5 from 2.2.0 to 2.2.3 (ed3b9ba)
  • deps: update dependency esbuild to ^0.17.0 (2f88a14)

1.8.4 (2023-01-02)

Miscellaneous

  • 🤖 bump blade-formatter to 1.32.3 (1cc5049)

1.8.3 (2022-12-25)

Miscellaneous

  • 🤖 bump blade-formatter to 1.32.2 (7900d40)
  • deps: update actions/stale action to v7 (da64151)

1.8.2 (2022-12-18)

Miscellaneous

  • 🤖 bump blade-formatter to 1.32.0 (e4e843a)
  • 🤖 bump blade-formatter to 1.32.1 (efb2e1c)
  • deps: update cirrus-actions/rebase action to v1.8 (ab1549d)
  • deps: update dependency esbuild to ^0.16.0 (6391e5e)

1.8.1 (2022-11-20)

Miscellaneous

  • 🤖 bump blade-formatter to 1.31.1 (9d252db)

1.8.0 (2022-10-30)

Features

  • 🎸 add option --custom-html-attributes-order (97070f7)

Miscellaneous

  • 🤖 bump blade-formatter to 1.31.0 (32291f6)

1.7.3 (2022-10-23)

Miscellaneous

  • 🤖 bump blade-formatter to 1.30.3 (e6ce278)

1.7.2 (2022-10-16)

Miscellaneous

  • 🤖 bump blade-formatter to 1.30.2 (7bf0057)
  • deps: update pozil/auto-assign-issue action to v1.11.0 (f483a27)

1.7.1 (2022-10-10)

Miscellaneous

  • 🤖 bump blade-formatter to 1.30.1 (b0c96cd)

1.7.0 (2022-10-09)

Features

  • 🎸 add option --no-php-syntax-check (f710459)

Miscellaneous

  • 🤖 bump blade-formatter to 1.30.0 (6bf2b50)
  • deps: update pozil/auto-assign-issue action to v1.10.1 (7775bdb)

1.6.3 (2022-10-01)

Miscellaneous

  • 🤖 bump blade-formatter to 1.29.8 (1c9152e)

1.6.2 (2022-09-24)

Miscellaneous

  • 🤖 bump blade-formatter to 1.29.7 (ac6d4c8)

1.6.1 (2022-09-21)

Miscellaneous

  • 🤖 bump blade-formatter to 1.29.5 (83e1e61)

1.6.0 (2022-09-19)

Features

  • 🎸 add option --tailwindcss-config-path (d27adcc)

Miscellaneous

  • 🤖 add concat-stream to dev-dependencies (b23cef4)
  • 🤖 bump blade-formatter to 1.29.0 (27ccc95)
  • 🤖 bump blade-formatter to 1.29.2 (9c713b2)

Fixes

  • 🐛 config path is not calculated relative to .prettierrc (0f7d959)
  • 🐛 support for cases where prettierrc.json needs lookup (84d2b66)

1.5.7 (2022-09-11)

Miscellaneous

  • 🤖 bump blade-formatter to 1.28.0 (1393f3f)
  • deps: update dependency ts-jest to v29 (c5a9f99)

1.5.6 (2022-09-03)

Miscellaneous

  • 🤖 bump blade-formatter to 1.27.7 (993aed8)
  • deps: bump synckit from 0.8.3 to 0.8.4 (59974b2)

1.5.5 (2022-08-28)

Miscellaneous

  • 🤖 bump blade-formatter to 1.27.6 (59ecd46)
  • deps: update dependency jest to v29 (fa92c70)

1.5.4 (2022-08-22)

Miscellaneous

  • 🤖 bump blade-formatter to 1.27.5 (bae10a7)
  • deps: bump synckit from 0.8.1 to 0.8.3 (3659513)
  • deps: update pozil/auto-assign-issue action to v1.10.0 (40a5376)

1.5.3 (2022-08-13)

Miscellaneous

  • 🤖 bump blade-formatter to 1.27.4 (ca2d496)
  • deps: update dependency esbuild to ^0.15.0 (2730657)

1.5.2 (2022-08-09)

Miscellaneous

  • 🤖 bump blade-formatter to 1.27.2 (801858b)

1.5.1 (2022-08-08)

Miscellaneous

  • 🤖 bump blade-formatter to 1.27.1 (1009ca0)

1.5.0 (2022-08-08)

Features

  • 🎸 sort html attributes option (e43c6e2)

Miscellaneous

  • 🤖 bump blade-formatter to 1.27.0 (c00a43e)
  • deps: update akhilmhdh/contributors-readme-action action to v2.3.5 (4e713ad)
  • deps: update akhilmhdh/contributors-readme-action action to v2.3.6 (8f4c5b1)
  • deps: update pozil/auto-assign-issue action to v1.9.0 (e012784)

Fixes

  • 🐛 support prettier's no multiple empty lines behaviour (fb64b85)

1.4.22 (2022-07-31)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.17 (5108a3c)

1.4.21 (2022-07-28)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.16 (c4b9d54)

1.4.20 (2022-07-26)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.15 (af175df)

1.4.19 (2022-07-20)

Fixes

  • deps: update dependency synckit to ^0.8.0 (bf488b0)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.14 (bf6a34d)
  • deps: bump synckit from 0.8.0 to 0.8.1 (b262b5b)
  • deps: update pozil/auto-assign-issue action to v1.8.0 (f781f24)

1.4.18 (2022-07-12)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.13 (df90dc9)

1.4.17 (2022-07-06)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.12 (a4bb6b8)
  • deps: bump synckit from 0.7.1 to 0.7.2 (79fa3e1)

1.4.16 (2022-07-02)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.11 (042a75d)
  • deps-dev: bump @typescript-eslint/parser from 5.10.1 to 5.11.0 (4198cfc)
  • deps: update pozil/auto-assign-issue action to v1.7.3 (8a4aabc)

1.4.15 (2022-06-21)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.10 (263a12c)

1.4.14 (2022-06-19)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.9 (2361324)
  • deps: update actions/cache action to v3 (307d33e)
  • deps: update actions/checkout action to v3 (6c69006)
  • deps: update actions/setup-node action to v3 (12b6415)
  • deps: update cirrus-actions/rebase action to v1.7 (5da5d80)
  • deps: update codecov/codecov-action action to v3 (694f668)
  • deps: update googlecloudplatform/release-please-action action to v3 (4d2db4a)
  • deps: update jest monorepo to v28 (edc4174)
  • deps: update pozil/auto-assign-issue action to v1.7.0 (5bb7c0a)

1.4.13 (2022-06-18)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.8 (8549777)

1.4.12 (2022-06-15)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.7 (e197db9)

1.4.11 (2022-06-10)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.6 (65c3d81)

1.4.10 (2022-06-05)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.5 (9a48202)

1.4.9 (2022-06-05)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.4 (df62766)

1.4.8 (2022-06-02)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.3 (b32ab07)

1.4.7 (2022-06-02)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.2 (8f7d75f)

1.4.6 (2022-05-21)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.1 (71c4d1c)
  • deps: bump minimist from 1.2.5 to 1.2.6 (fe3714f)

1.4.5 (2022-05-19)

Miscellaneous

  • 🤖 bump blade-formatter to 1.26.0 (85a7784)

1.4.4 (2022-05-17)

Miscellaneous

  • 🤖 bump blade-formatter to 1.25.4 (b7ebc16)

1.4.3 (2022-05-15)

Miscellaneous

  • 🤖 bump blade-formatter to 1.25.3 (2f613ef)

1.4.2 (2022-05-14)

Miscellaneous

  • 🤖 bump blade-formatter to 1.25.2 (3e2b965)

1.4.1 (2022-05-13)

Miscellaneous

  • 🤖 bump blade-formatter to 1.25.1 (7e5367f)

1.4.0 (2022-05-12)

Miscellaneous

  • 🤖 bump blade-formatter to 1.25.0 (8428d7e)
  • deps-dev: bump eslint from 8.7.0 to 8.8.0 (ad58451)
  • deps: bump synckit from 0.7.0 to 0.7.1 (716fe36)
  • release 1.4.0 (8626c24)

1.3.6 (2022-05-07)

Miscellaneous

  • 🤖 bump blade-formatter to 1.24.0 (15009f1)

1.3.5 (2022-05-03)

Miscellaneous

  • 🤖 bump blade-formatter to 1.23.8 (d685346)

1.3.4 (2022-05-02)

Miscellaneous

  • 🤖 bump blade-formatter to 1.23.7 (824b514)

1.3.3 (2022-05-02)

Miscellaneous

  • 🤖 bump blade-formatter to 1.23.6 (6c64436)

1.3.2 (2022-04-27)

Miscellaneous

  • 🤖 bump blade-formatter to 1.23.5 (49c0940)

1.3.1 (2022-04-25)

Miscellaneous

  • 🤖 bump blade-formatter to 1.23.3 (abd2961)

1.3.0 (2022-04-24)

Features

  • 🎸 bracketSameLine option (6b89032)

1.2.6 (2022-04-17)

Miscellaneous

  • 🤖 bump blade-formatter to 1.23.2 (8984d04)
  • deps: bump prettier from 2.6.1 to 2.6.2 (55a7f08)

1.2.5 (2022-04-15)

Miscellaneous

  • 🤖 bump blade-formatter to 1.23.1 (197a226)
  • deps: bump synckit from 0.6.0 to 0.7.0 (ea8407f)

1.2.4 (2022-04-03)

Miscellaneous

  • 🤖 bump blade-formatter to 1.23.0 (34768aa)

1.2.3 (2022-04-02)

Miscellaneous

  • 🤖 bump blade-formatter to 1.22.3 (79304a0)

1.2.2 (2022-03-29)

Miscellaneous

  • 🤖 bump blade-formatter to 1.22.2 (6ce7e41)
  • deps: bump prettier from 2.6.0 to 2.6.1 (6788dad)

1.2.1 (2022-03-25)

Miscellaneous

  • 🤖 bump blade-formatter to 1.22.1 (02efc64)

1.2.0 (2022-03-25)

Features

  • 🎸 singleAttributePerLine option (993cf77)

Miscellaneous

  • 🤖 bump @types/prettier to 2.4.4 (d214534)

1.1.11 (2022-03-23)

Miscellaneous

  • 🤖 bump blade-formatter to 1.22.0 (ef7e258)

1.1.10 (2022-03-19)

Miscellaneous

  • 🤖 bump blade-formatter to 1.21.5 (9b5e230)

1.1.9 (2022-03-18)

Miscellaneous

  • 🤖 bump blade-formatter to 1.21.4 (ee04321)

1.1.8 (2022-03-14)

Miscellaneous

  • 🤖 bump blade-formatter to 1.21.3 (ed62c2c)

1.1.7 (2022-03-13)

Miscellaneous

  • 🤖 bump blade-formatter to 1.21.2 (5a518e1)

1.1.6 (2022-03-12)

Miscellaneous

  • 🤖 bump blade-formatter to 1.21.1 (4aa52ab)

1.1.5 (2022-03-09)

Miscellaneous

  • 🤖 bump blade-formatter to 1.21.0 (dcd4fd0)

1.1.4 (2022-03-05)

Miscellaneous

  • 🤖 bump blade-formatter to 1.20.5 (c44cd9e)

1.1.3 (2022-03-03)

Miscellaneous

  • 🤖 bump blade-formatter to 1.20.4 (0817eab)

1.1.2 (2022-03-03)

Miscellaneous

  • 🤖 bump blade-formatter to 1.20.3 (a1012c3)

1.1.1 (2022-03-02)

Miscellaneous

  • 🤖 bump blade-formatter to 1.20.2 (49230ee)

1.1.0 (2022-02-27)

Features

  • 🎸 add automatic Tailwind Css class sorting option (87a2a1f)

Miscellaneous

  • 🤖 bump blade-formatter to 1.20.1 (f02df0b)
  • 🤖 enable tailwindcss class sort behaviour by default (6608c9e)

1.0.11 (2022-02-23)

Miscellaneous

  • 🤖 bump blade-formatter to 1.19.0 (505da42)

1.0.10 (2022-02-21)

Miscellaneous

  • 🤖 bump blade-formatter to 1.18.6 (6db527d)

1.0.9 (2022-02-20)

Miscellaneous

  • 🤖 bump blade-formatter to 1.18.5 (d90be2f)

1.0.8 (2022-02-13)

Miscellaneous

  • 🤖 bump blade-formatter to 1.18.4 (0482f97)

1.0.7 (2022-02-13)

Miscellaneous

  • 🤖 bump blade-formatter to 1.18.3 (0dd52fd)

1.0.6 (2022-02-09)

Miscellaneous

  • 🤖 bump blade-formatter to 1.17.5 (363e74d)

1.0.5 (2022-02-08)

Miscellaneous

  • 🤖 bump blade-formatter to 1.17.4 (8343867)

1.0.4 (2022-02-06)

Miscellaneous

  • 🤖 add codecov to dev-dependencies (9c247ed)
  • 🤖 add ignore pattern (982483b)
  • 🤖 bump blade-formatter to 1.17.3 (e82c73e)

1.0.3 (2022-01-29)

Miscellaneous

  • 🤖 bump blade-formatter to 1.17.2 (cd6522e)

1.0.2 (2022-01-27)

Miscellaneous

  • 🤖 add synckit to dependencies (9515a19)
  • 🤖 drop execa from dependencies (ed39de9)

Performance

  • ⚡️ use synckit worker to gain throuhput on format (c9c0839)

1.0.1 (2022-01-27)

Miscellaneous

1.0.0 (2022-01-27)

Miscellaneous

  • 🤖 add .gitattributes (b0b24c9)
  • 🤖 add cross-env to dependencies (6daea74)
  • 🤖 drop support for node under 14.x (3e8a6cf)
  • Initialize (dab21bb)