Skip to content
New issue

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

Try Biome.js vs Prettier #4

Open
joseacabaneros opened this issue Oct 18, 2024 · 2 comments
Open

Try Biome.js vs Prettier #4

joseacabaneros opened this issue Oct 18, 2024 · 2 comments

Comments

@joseacabaneros
Copy link
Member

@davidglezz suggests to use Biome.js instead of Prettier
#1 (comment)

Formatting in 10% of the time! 🚀

@davidglezz
Copy link
Contributor

davidglezz commented Oct 18, 2024

I tried Biome.js

biome.json

{
  "formatter": {
    "enabled": true,
    "formatWithErrors": true,
    "ignore": [],
    "attributePosition": "auto",
    "indentStyle": "space",
    "indentWidth": 2,
    "lineWidth": 100,
    "lineEnding": "lf"
  },
  "javascript": {
    "formatter": {
      "quoteStyle": "single",
      "arrowParentheses": "asNeeded",
      "quoteProperties": "asNeeded",
      "semicolons": "always",
      "trailingCommas": "all"
    }
  },
  "json": {
    "formatter": {
      "trailingCommas": "none"
    }
  }
}

then run npx @biomejs/biome format --write .

Formatting in 10% of the time! 🚀

@davidglezz
Copy link
Contributor

davidglezz commented Oct 18, 2024

BUT...
Partial support for vue files:
It only format js/ts code, css & html keeps untouched (at least in Vue SFC).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants