Skip to content

feat(no-wait-for-empty-callback ): new rule no-wait-for-empty-callback #94

Merged
Belco90 merged 2 commits intov3from
pr/no-wait-for-empty-callback
Mar 21, 2020
Merged

feat(no-wait-for-empty-callback ): new rule no-wait-for-empty-callback #94
Belco90 merged 2 commits intov3from
pr/no-wait-for-empty-callback

Conversation

@timdeschryver
Copy link
Copy Markdown
Member

@timdeschryver timdeschryver commented Mar 20, 2020

Closes #92

This rule covers:

  • empty arrow function (i.e. () => {})
  • empty regular function (i.e. function () {})
  • a function or var called noop

Inspired by eslint no-empty-function rule

@timdeschryver timdeschryver added the new rule New rule to be included in the plugin label Mar 20, 2020
@timdeschryver
Copy link
Copy Markdown
Member Author

@Belco90 this is what we're aiming for, right?
Not sure how we can tackle a var referencing any of previously mentioned

@Belco90
Copy link
Copy Markdown
Member

Belco90 commented Mar 20, 2020

Yes! This is exactly what we need. Let's leave the var referencing for future improvement if necessary. I'll add couple of comments tho I know this is just a draft.

@timdeschryver timdeschryver changed the title feat: add no-wait-for-empty-callback rule feat(no-wait-for-empty-callback ): new rule no-wait-for-empty-callback Mar 21, 2020
@timdeschryver timdeschryver marked this pull request as ready for review March 21, 2020 12:46
@Belco90 Belco90 changed the base branch from master to v3 March 21, 2020 17:33
Copy link
Copy Markdown
Member

@Belco90 Belco90 left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

@Belco90 Belco90 merged commit e50546d into v3 Mar 21, 2020
@Belco90 Belco90 deleted the pr/no-wait-for-empty-callback branch March 21, 2020 18:23
Belco90 pushed a commit that referenced this pull request Mar 29, 2020
feat(await-async-utils): reflect waitFor changes (#89)
feat: new rule no-wait-for-empty-callback (#94)
feat: new rule prefer-wait-for (#88)
feat: new rule prefer-screen-queries (#99)
BREAKING CHANGE: drop support for node v8. Min version allowed is node v10.12 (#96)
BREAKING CHANGE: rule `no-get-by-for-checking-element-not-present` removed in favor of new rule `prefer-presence-queries` (#98)

Closes #85
Closes #86
Closes #90
Closes #92
Closes #95

Co-authored-by: timdeschryver <28659384+timdeschryver@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new rule New rule to be included in the plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New rule: no-wait-for-empty-cb

2 participants