RichardLitt / remark-lint-appropriate-heading

Check that the top-level heading matches the directory name

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`file.warn` is `undefined`

piranna opened this issue · comments

file.warn(`Heading '${actual}' is not the directory name`, firstNonCommentMarkerNode)

Seems dependencies of standard-readme and standard-readme-cli got obsolete and API has changed. There's now a file.failbut not sure if it has the same purposse.

  "dependencies": {
    "remark": "^11.0.2",
    "standard-readme-preset": "^1.0.4",
    "to-vfile": "^6.0.0"
  },
commented

file.message is what you want in this case, that replaced file.warn!

Then we need to update the code here :-)

Fixed in #8, can you review and merge?

Thank you :-)