sindresorhus/eslint-plugin-unicorn

The `regex-shorthand` rule has a false-negative #157

sindresorhus posted onGitHub

This doesn't cause a lint error:

const foo = /^by @([a-zA-Z0-9-]+)/

Even though it could be:

const foo = /^by @([a-zA-Z\d-]+)/

I think we might need to use some more advanced detection. Maybe regexp-tree. Although, it has an optimizer API already, which I think already handles this and many other cases.

// @SamVerschueren


@issuehunt has funded $30.00 to this issue.


posted by IssueHuntBot about 6 years ago

This is up for grabs again. If anyone wants to tackle this, you can probably continue where https://github.com/sindresorhus/eslint-plugin-unicorn/pull/261 left off.

posted by sindresorhus over 5 years ago

@sindresorhus has rewarded $27.00 to @jdanil. See it on IssueHunt

  • :moneybag: Total deposit: $30.00
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $3.00
posted by issuehunt-app[bot] over 5 years ago

Fund this Issue

$30.00
Rewarded

Rewarded pull request

Other pull requests

Recent activities

jdanil was rewarded by sindresorhus for sindresorhus/eslint-plugin-unicorn# 157
over 5 years ago