We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Biome extension behaves differently depending on how formatting is triggered:
biome.json
Ctrl + Alt + L
When using the Ctrl + Alt + L shortcut, it seems that the code is formatted with a stricter configuration than the one defined in our biome.json.
To illustrate this issue, here’s an example from a page found on Google showing the difference between the two formatting behaviors:
What i have on save:
import { useState } from "react" export default function App() { const [counter, setCounter] = useState(0) const increase = () => { setCounter(count => count + 1) } const decrease = () => { setCounter(count => count - 1) } const reset = () => { setCounter(0) } return ( <div className="counter"> {" "} <h1>React Counter</h1> <span className="counteroutput">{counter}</span>{" "} <div className="btncontainer"> {" "} <button className="controlbtn" onClick={increase} type="button" > + </button>{" "} <button className="controlbtn" onClick={decrease} type="button" > - </button>{" "} <button className="reset" onClick={reset} type="button" > Reset </button>{" "} </div>{" "} </div> ) }
What i have with ctrl + alt + l:
import { useState } from "react"; export default function App() { const [counter, setCounter] = useState(0); const increase = () => { setCounter(count => count + 1); }; const decrease = () => { setCounter(count => count - 1); }; const reset = () => { setCounter(0); }; return ( <div className="counter"> {" "} <h1>React Counter</h1> <span className="counteroutput">{counter}</span>{" "} <div className="btncontainer"> {" "} <button className="controlbtn" onClick={increase} type="button" > + </button> {" "} <button className="controlbtn" onClick={decrease} type="button" > - </button> {" "} <button className="reset" onClick={reset} type="button" > Reset </button> {" "} </div> {" "} </div> ); }
Do you think this issue is caused by the Biome extension or rather by a misconfiguration on our end? I'm available for any questions you may have.
Hugo
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Overview
The Biome extension behaves differently depending on how formatting is triggered:
biome.json
file is correctly applied.Ctrl + Alt + L
), the correct Biome configuration is not always respected.Env Info
Bug explaination
When using the
Ctrl + Alt + L
shortcut, it seems that the code is formatted with a stricter configuration than the one defined in our biome.json.To illustrate this issue, here’s an example from a page found on Google showing the difference between the two formatting behaviors:
What i have on save:
What i have with ctrl + alt + l:
Do you think this issue is caused by the Biome extension or rather by a misconfiguration on our end? I'm available for any questions you may have.
Hugo
The text was updated successfully, but these errors were encountered: