-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Fix good lints given by eslint-plugin-unicorn #55517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
[git-generate] npm ci npx hereby lint --fix || true npx dprint fmt
scripts/errorCheck.mjs
Outdated
| let g; | ||
| while (g = errRegex.exec(baseline)) { | ||
| const errCode = +g[1]; | ||
| const msg = keys.filter(k => messages[k].code === errCode)[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This just seems like a weird pattern in general. Particularly since filter doesn't short-circuit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't disagree, I didn't write it, but I am fixing it 😅
src/compiler/commandLineParser.ts
Outdated
|
|
||
| function makePadding(paddingLength: number): string { | ||
| return Array(paddingLength + 1).join(" "); | ||
| return new Array(paddingLength + 1).join(" "); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah: #55515 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though really I don't know why this isn't just .repeat.
|
@typescript-bot perf test this faster |
|
Heya @jakebailey, I've started to run the faster perf test suite on this PR at b1d2b24. You can monitor the build here. Update: The results are in! |
|
@jakebailey Here they are:
tscComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Not final; I'm not totally sure I want to add this dependency (it's kinda big).