Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
conaclos
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
91.
▲
by
conaclos
3y ago
Typically, you would check the formatting of the entire codebase on the CI or even locally (to ensure that you are doing the same checks on the CI and locally). On a large code base this can take several seconds, reducing developer experien
92.
▲
by
conaclos
3y ago
Biome [0], a fast Prettier-compatible formatter, is currently working on adding class sorting [1]. We expect to ship the feature with the next release (on February). We are discussing which options to provide for the feature (mainly on the
93.
▲
by
conaclos
3y ago
A contributor is currently working on this feature [0] We are currently discussing which options to add to the rule on the Discord of Biome. We expect to ship the feature with the next release (on February). A nightly will be released earli
94.
▲
by
conaclos
3y ago
Maybe it's crazy, but I'm one of those people who tries to make a living of the goodwill of people and companies. I am working for free since several months on Biome ( https://biomejs.dev ), a fast formatter and linter f
95.
▲
by
conaclos
3y ago
Yes, we need multi-file analysis and a type system. It is part of our roadmap for 2024.
96.
▲
Biome 1.5: fast Prettier and ESLint alternative
(biomejs.dev)
6 points
by
conaclos
3y ago
|
3 comments
97.
▲
by
conaclos
3y ago
The TypeScript, JSX and JavaScript formatter has surpassed the 97% compatibility rate with Prettier. Biome now provides over 190 lint rules from ESlint, TypeScript ESlint, and others sources. This version also adds new CLI options that enab
98.
▲
by
conaclos
3y ago
The last time I checked, it was not possible to re-encode a JXL image into a JPEG image. Is this now supported?
99.
▲
by
conaclos
3y ago
Biome is the continuation of Rome Tools. It exists since several years and always featured a linter and a formatter. If I remember correctly, OXC was born out of its author's desire to learn Rust and his feeling that Rome Tools/Bi
100.
▲
by
conaclos
3y ago
Biome implements more ESLint rules than OXC: Biome implements about 90 ESLint rules [0], while OXC implements about 60 rules. This brings Biome closer to parity with ESLint. However, Biome has changed some rule names, uses camel-case rule n
101.
▲
by
conaclos
3y ago
I could rephrase this way: Copying Is Theft if you made a lot of money with that. Copying Is Not Theft if you made a living of that.
102.
▲
by
conaclos
3y ago
We certainly need more regulation to prevent this kind of buying. But that is clearly not the mood at the moment.
103.
▲
by
conaclos
3y ago
I already used `x >>> 0` to ensure that the integer is a unsigned integer on 32bits. `x|0` ensures that the integer is signed on 32bits.
104.
▲
by
conaclos
3y ago
Biome is also working on a feature that only formats changed files. See the associated PR [0] for more details. [0] https://github.com/biomejs/biome/pull/753
105.
▲
by
conaclos
3y ago
This heavily depends on your workstation. Biome scales very well. With 16 threads on a i7-120P, I got the following figures: Webpack repository: Biome ran 2.19 ± 0.11 times faster than dprint 4.18 ± 0.14 times faster than Biome
106.
▲
by
conaclos
3y ago
If you switch from Prettier to deno-fmt you will notice many changes to perform on your code base. Biome tries to minimize these changes.
107.
▲
by
conaclos
3y ago
What do you mean by "backwards"?
108.
▲
$20k bounty was claimed
(prettier.io)
716 points
by
conaclos
3y ago
|
326 comments
109.
▲
by
conaclos
3y ago
Yes. I transpile my libraries and in order to be ESM-compatible you have to use the extension of the emitted files (in my case `.js`)
110.
▲
by
conaclos
3y ago
Great to know!
111.
▲
by
conaclos
3y ago
Because I am publishing libraries. Generally you don't want to bundle a library, you want to transpile it. You leave the bundling phase to an application. Transpiling instead of bundling avoids some pitfalls. Just to cite one that come
112.
▲
by
conaclos
3y ago
ESbuild correctly resolves the path, however it doesn't rewrite the import path. Thus, you end with a javascript file that tries to import a typescript file (this leads to a runtime error in the browser and Node).
113.
▲
by
conaclos
3y ago
> ESbuild has handled “.ts” imports for as long as I’ve used it. Yes, ESbuild correctly resolves the path, however it doesn't rewrite the import path. Thus, you end with a javascript file that tries to import a typescript file (this
114.
▲
by
conaclos
3y ago
I mean, if you have a file `mod.ts`, in Deno you cannot import `mod.ts` using the following import: import {} from "./mod.js" You have to write: import {} from "./mod.ts" ESbuild doesn't tran
115.
▲
by
conaclos
3y ago
I would love to use Deno, however it is not totally compatible with the TypeScript ecosystem: it is not possible to import a TypeScript file using the `js` extension. This is a dealbreaker for me because by adopting the `ts` extension you m
116.
▲
by
conaclos
3y ago
Some comments and suggestions: - `importsNotUsedAsValues` is deprecated [0] since TypeScript 5.2, in favor of `verbatimModuleSyntax` [1]. - I could set `module` to `Node16`. This automatically set `esModuleInterop` to true. - Also, to catch
117.
▲
by
conaclos
3y ago
I also encounter this issue. I would also like to forbid amendind a commit that is not part of the working branch.
118.
▲
Biome v1.3: lint and format TypeScript and JSX in a fraction of a second
(biomejs.dev)
8 points
by
conaclos
3y ago
|
1 comments
119.
▲
by
conaclos
3y ago
Biome formats and lints your TypeScript, JavaScript, JSX and JSON code in a fraction of a second. Biome follows the formatting convention of Prettier and is able to organize your Typescript/JavaScript imports. Biome has many linter rul
120.
▲
by
conaclos
3y ago
Biome [0] aims to be a linter and formatter for the web techs. It already supports JavaScript, TypeScript, JSX, and soon CSS. [0] https://github.com/biomejs/biome
More ›