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

edge case(multiple lines): last line is followed by curly braces #3

Closed
zhengbangbo opened this issue Oct 28, 2022 · 1 comment
Closed
Labels
good first issue Good for newcomers

Comments

@zhengbangbo
Copy link

zhengbangbo commented Oct 28, 2022

eslint-disable version

v0.0.4

steps to reproduce

  • Select the last two lines to add no-console
async function run() {
  // ...
  console.log('last 7 days:', await repo.last(7))
  console.log('last day:', await repo.last(1))
}

what is Expected?

async function run() {
  // ...
  /* eslint-disable no-console */
  console.log('last 7 days:', await repo.last(7))
  console.log('last day:', await repo.last(1))
  /* eslint-enable no-console */
}

what is actually happening?

async function run() {
  // ...
  /* eslint-disable no-console */
  console.log('last 7 days:', await repo.last(7))
  console.log('last day:', await repo.last(1))
}/* eslint-enable no-console */
@lvjiaxuan
Copy link
Owner

PR welcome.

@lvjiaxuan lvjiaxuan added the good first issue Good for newcomers label Oct 28, 2022
@lvjiaxuan lvjiaxuan pinned this issue Oct 28, 2022
@lvjiaxuan lvjiaxuan unpinned this issue Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants