TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rome v12.1: a linter formatter for TypeScript, JSX and JSON

133 pointsby conaclosabout 2 years ago

14 comments

veidrabout 2 years ago
I click through every formatter-related post because I am looking for something better than what I have. My team at work wanted to use Prettier, but lack of configurability (and also heinous bugs!) made me switch to dprint[1].<p>But even dprint doesn&#x27;t do a couple of the things I want, #1 of which is &quot;For the love of science, please stop deleting the intentionally placed blank line after a hugely long class declaration!&quot; E.g.:<p><pre><code> @Directive() export abstract class AutocompleteComponentBase&lt;T&gt; implements ControlValueAccessor, AfterContentInit, OnDestroy { @ViewChild(DsAutocompleteContainerDirective, { static: true }) autocomplete: DsAutocompleteContainerDirective&lt;T&gt;; &#x2F;&#x2F; class definition continues... </code></pre> I mean, I know I am a bad person because of those long names, but that is how life goes sometimes! And the blank line there at the top is just very important to like, catch one&#x27;s breath, while reading this code.<p>(I&#x27;m really just posting this in the hopes that somebody will throw me a &quot;Bro, just use hpstrlnt, it totally lets you configure that!&quot; -- I have not actually tried Rome to see if it does (it&#x27;s Monday morning and I&#x27;m not quite ready to be disappointed again...))<p>[1]: dprint is good, and I recommend it as the best code formatter I currently know of: <a href="https:&#x2F;&#x2F;dprint.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dprint.dev&#x2F;</a>
thotthinkrabout 2 years ago
I look at tools like Rome and they might have been relevant 5 years ago.<p>I think Bun has a better shot than Deno because it has a very fast built in node_modules installer. But I think Bun&#x27;s goals are too ambitious - trying to be all things to all projects from a single binary. No one cares if you have to use a separate binary, esbuild, for all your bundling needs, for example.<p>It&#x27;s amusing how the entire JS ecosystem put up with such slow build times for a decade. If these JS tools teach us anything it&#x27;s that JavaScript doesn&#x27;t cut it for performance and a compiled language is the way to go.
评论 #35942706 未加载
评论 #35941303 未加载
评论 #35974610 未加载
评论 #35941554 未加载
Destinerabout 2 years ago
I don&#x27;t see how they are going to compete with tons of ESLint plugins. There&#x27;s just no way a small team can do such a large amount of maintenance.
评论 #35937038 未加载
评论 #35930970 未加载
评论 #35940529 未加载
评论 #35939845 未加载
评论 #35938059 未加载
jordnabout 2 years ago
Is this good&#x2F;stable now? Worth switching from Pettier and eslint?
评论 #35930637 未加载
评论 #35937000 未加载
评论 #35937364 未加载
评论 #35930393 未加载
评论 #35930107 未加载
评论 #35930555 未加载
andrewmcwattersabout 2 years ago
I&#x27;ve got mixed feelings about Rome. There&#x27;s so much room to cover with ridiculously slow tools today. But I&#x27;m sick and tired of these people in the industry dropping their toys because they&#x27;re tired of working on stuff people actually use instead of just improving what they currently have.<p>Would it have been impossible to nudge Node.js in the direction of where Deno is today?<p>Would it have been impossible to replace Babel with a Go implementation?<p>I also don&#x27;t want tools that want to be literally everything.<p>Imagine if Daniel Stenberg was like, &quot;You know what I&#x27;m tired of cURL, let me rebuild literally the same thing in another language and give it a new name, and entirely different opts.&quot;
评论 #35938180 未加载
评论 #35930915 未加载
评论 #35930856 未加载
评论 #35931660 未加载
评论 #35932386 未加载
评论 #35937788 未加载
评论 #35937325 未加载
评论 #35930993 未加载
评论 #35938211 未加载
评论 #35931563 未加载
评论 #35930802 未加载
评论 #35939311 未加载
评论 #35939133 未加载
评论 #35936985 未加载
评论 #35930835 未加载
评论 #35938610 未加载
评论 #35930873 未加载
评论 #35938798 未加载
vsskanthabout 2 years ago
Is there a JSON formatter out there that can be configured specifically for numeric arrays ? I&#x27;m specifically looking for something that formats 1D arrays in one line and 2D as one line per row.<p>fracturedJSON gets close but not exactly what I want.
whatever3about 2 years ago
Does anyone know what has happened to the company behind Rome? Seems like all the employees have left
评论 #35941057 未加载
评论 #35930337 未加载
评论 #35930813 未加载
k__about 2 years ago
Half-OT:<p>What do you think of pnpm?<p>I saw it off and on since 2015 and read some projects switched to it and then back again, when it didn&#x27;t work out.
评论 #35930556 未加载
评论 #35937134 未加载
评论 #35937016 未加载
conaclosabout 2 years ago
This new version adds the support for Stage 3 decorators. It also stabilizes more than 30 linter rules.
fortyabout 2 years ago
Does it allow to create local custom lint rules? I haven&#x27;t found anything about this in the doc
评论 #35937033 未加载
Raed667about 2 years ago
Eslint can get VERY slow on large apps. Rome seems to be the perfect answer to that, but I can&#x27;t seem to find a way to port&#x2F;import Eslint rules into Rome.
评论 #35937466 未加载
评论 #35930713 未加载
cabirumabout 2 years ago
V12? When&#x2F;how did they jump from v0.x.y to 12?
评论 #35930373 未加载
eberkundabout 2 years ago
Does this work with Vue SFCs?
throwaway81523about 2 years ago
Why write something like this in Rust since it presumably doesn&#x27;t have anything memory intensive or real time going on? Rust&#x27;s manual memory management is a necessary thing sometimes, but it is a pain, right?
评论 #35940214 未加载
评论 #35939252 未加载