npm-package-json-lint
npm-package-json-lint copied to clipboard
new rule exports-valid
Draft for preliminary review
For reference: https://nodejs.org/api/esm.html#esm_main_entry_point_export
Description of change
Checklist
- [ ] Unit tests have been added
- [ ] Specific notes for documentation, if applicable
Nice work, @mightyiam. This is looking really good. Let me know if you have questions about my comments. I'm happy to discuss more!
Some of the checks I came up with are beyond validity. They are additional checks. For example, an array of fallbacks that has multiple valid values does not makes sense, because only the first will be used. I will split this work into multiple rules. By the way, I am streaming this work live. The schedule is here.