npm-package-json-lint icon indicating copy to clipboard operation
npm-package-json-lint copied to clipboard

new rule exports-valid

Open mightyiam opened this issue 5 years ago • 2 comments

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

mightyiam avatar Jun 16 '20 17:06 mightyiam

Nice work, @mightyiam. This is looking really good. Let me know if you have questions about my comments. I'm happy to discuss more!

tclindner avatar Jun 24 '20 03:06 tclindner

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.

mightyiam avatar Sep 17 '20 05:09 mightyiam