vuejs / v2.vuejs.org

📄 Documentation for Vue 2
https://v2.vuejs.org
MIT License
5.04k stars 3.43k forks source link

[Proposal] Content linting #2499

Closed sarahdayan closed 4 years ago

sarahdayan commented 4 years ago

Hi there!

In the VuePress documentation, we've set up content and Markdown linting with textlint and remark-lint. This is helpful to ensure consistency over natural language style, Markdown formatting, and help to enforce rules that have been decided upon.

Similarly to ESLint, textlint lets you add and configure rules as plugins, and create your own. These can be checked in the CI or as a pre-commit hook and allow reviewers to focus on meaning instead of style.

Examples of rules that we've activated in VuePress:

Here's a more exhaustive list: https://github.com/textlint/textlint/wiki/Collection-of-textlint-rule

If this is something that interests you, I'm willing to take care of setting it up, install and configure the rules that you want to activate, and start the process of running it through the documentation.

Let me know what you think!

NataliaTepluhina commented 4 years ago

As we're moving to VuePress for Vue 3 docs, we set up rules there 👍

If you're willing to work on Vue 2 documentation linting, please do so but my concern is it might be wasting your time and effort

sarahdayan commented 4 years ago

@NataliaTepluhina Great news! Indeed, if this is happening on the Vue 3 docs, it's probably overkill to add it on the Vue 2 docs which will lose viewership with time anyway.

Thanks for your prompt reply! I'm closing this then 🙂

NataliaTepluhina commented 4 years ago

@sarahdayan as soon as we open Vue 3 docs - would you mind helping us with linters? 😅

sarahdayan commented 4 years ago

@NataliaTepluhina Of course, I would love to!