-
Notifications
You must be signed in to change notification settings - Fork 38
Closed as not planned
Labels
status: in discussionNot yet ready for implementation or a pull requestNot yet ready for implementation or a pull requesttype: bugSomething isn't working 🐛Something isn't working 🐛
Description
Bug Report Checklist
- I have tried restarting my IDE and the issue persists.
- I have searched for related issues and found none that matched my issue.
Expected
When upgrading to 0.56.0 in which no-redundant-files is a part of the recommended config the no-redundant-files rule flagged "bin/index.js", in the package.json as redundant. Removing it should result in lint passing.
Actual
After removing "bin/index.js", in the package.json files, the no-unpublished-bin rule from eslint-plugin-n throws
error npm ignores 'bin/index.js'. Check 'files' field of 'package.json' or '.npmignore' n/no-unpublished-binVersion
0.56.0
ESLint Version
9.34.0
Additional Info
"eslint-plugin-n": "17.21.0"
The no-unpublished-bin documentation states:
If
npmignores the files inbinfield, this rule warns the files.
- If
filesfield does not includes the files inbinfield.
I don't know which rule is correct. Filing the issue here first because enabling this rule is how the discrepancy was found.
You can recreate this in octoguide/bot#260.
Metadata
Metadata
Assignees
Labels
status: in discussionNot yet ready for implementation or a pull requestNot yet ready for implementation or a pull requesttype: bugSomething isn't working 🐛Something isn't working 🐛