-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Fix new usage for builtin objects
#6968
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
new usage for builtin typesnew usage for builtin objects
|
question: keep the rule? |
| const WIDTH = columns - stringWidth(OK) + 1; | ||
| if (input.length < WIDTH) { | ||
| input += Array(WIDTH - input.length).join(chalk.dim(".")); | ||
| input += new Array(WIDTH - input.length).join(chalk.dim(".")); |
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.
We could also change stuff like this into .repeat on the next branch.
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.
/cc @fisker if you’re looking for more refactoring to do :)
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.
maybe later
|
Maybe it’s going to be easier to merge all the eslint-plugin-unicorn PRs into |
|
@lydell why? It is not breaking change 😄 |
|
I thought about merge conflicts. If we merge this to master and then replace |
|
@lydell it makes sense 👍 |
* 'next' of github.com:prettier/prettier: Optimize some usage of `Array#filter` (#6996) Update `jest` to v24 (#6954) Replace `trim{Left,Right}` with `trim{Start,End}` (#6994) Set `trailingComma` default value to `es5` (#6963) Fix `new` usage for builtin objects (#6968) Replace `indexOf` with `includes` (#6967) fix: tests for empty type parameters in TS (#6960) Fix MDX html parsing errors (#6949) fix: issue #6813 (Zero-based lists are broken) (#6852) Style: use async functions (#6935) Disable trailingComma for Angular internal parser (#6912) Update `snapshot-diff` to v0.6.1 (#6955) Update build scripts to target Node.js 10 (#6908)
docs/directory)changelog_unreleased/*/pr-XXXX.mdfile followingchangelog_unreleased/TEMPLATE.md.✨Try the playground for this PR✨