blade-parser-typescript icon indicating copy to clipboard operation
blade-parser-typescript copied to clipboard

htmlWhitespaceSensitivity is not being taken into account

Open larxn opened this issue 1 year ago • 4 comments

Problem

Even when I set the htmlWhitespaceSensitivity rule to strict, the plugin keeps turning this:

<p>
  [email protected].
</p>

into this:

<p>
  me
  @example.com.
</p>

Or even this:

<img
  @class([
    // This is valid a comment.
    $coverUrl ? "object-center" :"object-left-top",
  ])
/>

into this:

<img
  @class([
    //Thisisvalidacomment.$coverUrl?"object-center":"object-left-top",
  ])
/>

Demo

Open this minimal StackBlitz demo and run:

npm run lint app.blade.php

larxn avatar Feb 15 '24 00:02 larxn