Comments (7)
What's the contents of d:\dev\vite-project\.eslintrc.cjs
? Does it work if you ignore that file? Due to the error message, it seems like it might be a bug in Biome.
from dprint-plugin-biome.
Oh wait, I just realized this is happening for all the files for you. I will look into it.
from dprint-plugin-biome.
@dsherret I have tried to ignore this file, and then it will say dprint.json
error formatting, then biome.json
error formatting, and then...
from dprint-plugin-biome.
I haven't been able to reproduce this on a bunch of repos with that config. Initially I thought maybe there was an issue in the config causing the plugin to panic, but that doesn't seem to be the case.
Sorry to bother, but do you have a reproduction repo I could try out?
Also, perhaps this command might show some insight as to what's happening:
> DPRINT_MAX_THREADS=1 dprint fmt --incremental=false --log-level=debug
Should there both two exeutable CLIs in my environment? Or just only dprint enough.
You only need dprint. Dprint will run dprint-plugin-biome sandboxed in a Wasm runtime (so it has no access to the file system).
I also want to know that if I use dprint-biome-config, should I add dprint-json-config etc. too?
I'm guessing what you mean here, but if you have biome then you don't need dprint-plugin-json because biome formats json files.
from dprint-plugin-biome.
Ok, thank you!!!
You only need dprint. Dprint will run dprint-plugin-biome sandboxed in a Wasm runtime (so it has no access to the file system).
So is there need a biome.json
in my project?
By the way, I find the reason that if I set both lineWidth
and biome
, there will be errors
from dprint-plugin-biome.
Sorry to bother, but do you have a reproduction repo I could try out?
if you need, here comes: https://github.com/iamwxq/dprint-biome-repo
In fact, you just need set both lineWidth
and biome
in the dprint.json
from dprint-plugin-biome.
Thanks for the information that helped to reproduce this, @iamwxq!
I have published a new version (0.2.2) with the fix and if you run dprint config update
it should automatically update your configuration file for you. It was a silly mistake I made.
So is there need a biome.json in my project?
No, since dprint runs dprint-plugin-biome in a sandboxed environment, the plugin doesn't have access to read from the file system in order to access the config. The config must be specified in the dprint.json file so that the dprint CLI can pass the configuration to the plugin. You only need to specify the url in the plugins array and then a "biome" config in the dprint.json file and everything should just work.
from dprint-plugin-biome.
Related Issues (3)
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 dprint-plugin-biome.