v0.1.9
Features
- Add new rule to check if a file is referenced in
package.json
but is not published. (#22) - Export
printMessage
frompublint/utils
to log the default message from thepublint()
results. Works in Node.js only (for now). Convenient when re-implementing the CLI but running it programmatically. (#23)
Bug fixes
- Fix ESM
main
suggestion check. Previously, ifmain
is ESM it will suggest to useexports
instead. While this is good, it's not necessary if the package already has anexports
, asmain
can still be kept for backwards compatibility. Now it will only suggest if there's noexports
since ESM packages should take advantage of the new field whenever possible. - Fix
types
export so autocompletion when importingpublint/utils
works.
Site
- Enable quick linking in rules page
- Refactor to write rules in markdown
Full Changelog: v0.1.8...v0.1.9