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

🚀 Feature: Lint rule for unnecessary ./ prefixes and the like in paths #731

Open
3 tasks done
JoshuaKGoldberg opened this issue Jan 15, 2025 · 0 comments
Open
3 tasks done
Labels
status: in discussion Not yet ready for implementation or a pull request type: feature New enhancement or request

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.

Overview

Coming over from JoshuaKGoldberg/create-typescript-app#1870: I've noticed that a lot of repos -including most of my own- unnecessarily include ./ prefixes in some package.json fields, such as bin.

As in, many packages do this:

"bin": "./bin/index.js",

But they should be linted to doing this:

"bin": "bin/index.js",

Additional Info

Investigation needed: what is the list of fields where this is the case? bin, main, ...?

💖

@JoshuaKGoldberg JoshuaKGoldberg added type: feature New enhancement or request status: in discussion Not yet ready for implementation or a pull request labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: in discussion Not yet ready for implementation or a pull request type: feature New enhancement or request
Projects
None yet
Development

No branches or pull requests

1 participant