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

🐛 Bug: Multiline rules comments crash blockESLint #2095

Closed
3 tasks done
JoshuaKGoldberg opened this issue Apr 2, 2025 · 1 comment · Fixed by #2101
Closed
3 tasks done

🐛 Bug: Multiline rules comments crash blockESLint #2095

JoshuaKGoldberg opened this issue Apr 2, 2025 · 1 comment · Fixed by #2101
Assignees
Labels
status: accepting prs Please, send a pull request to resolve this! type: bug Something isn't working :(

Comments

@JoshuaKGoldberg
Copy link
Owner

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Expected

blockESLint should be able to be given multiline addons.rules[number].comments. They should print with a // before each line.

Actual

■  Error running create-typescript-app:
│
■  SyntaxError: Unexpected token, expected "," (21:4)
│    19 |
│    20 | // // Using a ts bin file throws this rule off.
│  > 21 | it uses the package.json as a source of truth, and since the package points
│       |    ^
│    22 | at the transpiled js file, it treats usage on the ts src as a violation.
│    23 | "n/hashbang": "off",
│    24 |

Additional Info

https://github.com/JoshuaKGoldberg/package-json-validator/pull/178/files#diff-a32a0887ed9d1d707bbb3b845b7df7fd40e673c47e7b60a3ebd896b68d3b8839L19-L21 is an example place that would want them.

Copy link

github-actions bot commented Apr 2, 2025

🎉 This is included in version v2.22.5 🎉

The release is available on:

Cheers! 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepting prs Please, send a pull request to resolve this! type: bug Something isn't working :(
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant