Open 7flash opened 3 months ago
script tag cannot be self-enclosing
I think this is only true in HTML?
But this rule is only enabled in JSX, and JSX transpiler should transpile them into the same code, whether you use self-closing elements or not. You can check it in the babel playground.
Did I miss something? Or what kind of issues did you actually run into after you applied the fixes?
Good call, @Sec-ant; you're right.
Environment information
Rule name
lint/style/useSelfClosingElements
Playground link
N/A
Expected result
When I run
npx @biomejs/biome lint ./src/index.tsx
its offering this fix which is wrong because script tag cannot be self-enclosing
318 │ - ········<script·src="/filepond/filepond.js"> 318 │ + ········<script·src="/filepond/filepond.js"·/>
Code of Conduct