Giter Site home page Giter Site logo

Comments (6)

SuperchupuDev avatar SuperchupuDev commented on July 21, 2024

biome only formats known JSON extensions (.json, .jsonc etc), and .prettierrc is not one of them. i believe prettier supports .prettierrc.json though, renaming the prettier config file to that should work. also the fact that your current prettier config file isn't valid JSON

from biome.

ematipico avatar ematipico commented on July 21, 2024

Biome doesn't know how to handle rc files, so it's not a bug.

RC files can contain three languages: JavaScript, JSON or YAML, hence Biome can't handle them

from biome.

dalisoft avatar dalisoft commented on July 21, 2024

@SuperchupuDev @ematipico I am set type of file as JSON on VSCode then captured video demo, please see. Or look at playground link and output differs even i am set file type to json

from biome.

SuperchupuDev avatar SuperchupuDev commented on July 21, 2024

the playground link you sent contains invalid JSON, with things not supported by JSON such as unquoted keys and single quotes

from biome.

dalisoft avatar dalisoft commented on July 21, 2024

@SuperchupuDev and prettier formats it pretty well. So seems currently (or even on future) Biome formats strictly without any unsafe formats for invalid JSON format to JSON formatting?

from biome.

SuperchupuDev avatar SuperchupuDev commented on July 21, 2024

it looks like the format you're trying to use is json5 which is supported by prettier but not biome. there was a discussion about it #282, it's not widely supported across developer tools

from biome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.