Skip to content
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

Add array-callback-return ESLint rule #1395

Merged
merged 1 commit into from
Oct 15, 2020

Conversation

ehmicky
Copy link
Contributor

@ehmicky ehmicky commented Oct 15, 2020

This adds the array-callback-return ESLint rule.

This is a useful linting rule, and actually I think applying it in this PR might have found some bugs.

@ehmicky ehmicky added the type: chore work needed to keep the product and development running smoothly label Oct 15, 2020
@ehmicky ehmicky requested a review from a team as a code owner October 15, 2020 15:12
@ehmicky ehmicky self-assigned this Oct 15, 2020
jid:
gjid:
jid:
gjid:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated change. Not sure why Prettier/ESLint did not pick this.

@@ -35,7 +35,7 @@ const startServer = async ({ cwd, env = {}, args = [] }) => {
close: async () => {
selfKilled = true
const pids = await pidtree(ps.pid).catch(() => [])
pids.forEach((pid) => () => {
pids.forEach((pid) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this was a bug. What do you think @erezrokah ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I think so. A bad shameful copy paste probably

@ehmicky ehmicky merged commit 0c04b78 into master Oct 15, 2020
@ehmicky ehmicky deleted the chore/lint-array-callback-return branch October 15, 2020 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants