Comments (6)
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.
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.
@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.
the playground link you sent contains invalid JSON, with things not supported by JSON such as unquoted keys and single quotes
from biome.
@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.
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)
- 🐛 biome ci . --colors=off outputting colors HOT 5
- 💅 `lint/suspicious/noFallthroughSwitchClause` warns about a missing `break` even if TypeScript considers it unreachable due `never`. HOT 1
- 📎 Implement noDynamicNamespaceImportAccess
- 💅 useShorthandArrayType fix produces invalid syntax in `class extends` clause HOT 1
- 🐛 Playground crashes on `<div dangerouslySetInnerHtml={{ __html: '…' }} /` HOT 1
- 🐛 Constant crashes when editing css files
- 🐛 Files and paths from the `/nix/store` directory are checked by default HOT 4
- 💅 `useExhaustiveDependencies` does not recognize variables declared later as dependencies HOT 1
- 📎 Implement `comment-no-empty`
- 📎 Impplement `stylelint/no-irregular-whitespace`
- 📎 Implement `nursery/useConsistentMemberAccessibility` - `explicit-member-accessibility` HOT 2
- 📎 Implement suppression action for the CSS analyzer
- 🐛 Parser is no longer progressing HOT 9
- 🐛 The CSS parser doesn't support nested selectors with pseudo-classes HOT 2
- 💅 lint/suspicious/noDuplicateTestHooks : Duplicate test hook when using describe.each
- 💅 Transform a function with generics to arrow function by biome linter will not safe. HOT 2
- 🐛 Biome client: couldn't create connection to server. HOT 3
- 📎 Refactor/fix `JsParserSettings` for better override behavior HOT 4
- 💅 noCommentText does not work when any other text is a child
- 📎 Multi-file support HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biome.