-
Notifications
You must be signed in to change notification settings - Fork 4
Update docs to recommend markdownlint-cli2
#20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
### Should I disable rules enabled by this plugin? | ||
|
||
This plugin will enable the defaults defined by `markdownlint`. Several of these pertain to stylistic practices. You may choose to disable these rules if you determine it doesn't provide value for your project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new section.
I think this guidance aligns with the intent mentioned https://github.com/github/accessibility/pull/1614#discussion_r942717616.
enable all defaults and show explicitly which rules we're not adhering to.
|
||
However, others of these rules should **NOT** be disabled because they encourage best accessibility practices. Disabling these rules will negatively impact accessibility. These rules are specified in [accessibility.json](./accessibility.json). | ||
|
||
## Rules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new section. More comprehensive docs can be added in #12.
readme.md
Outdated
``` | ||
|
||
Notice that disabling some rules will have a negative impact on accessibility. | ||
5. Install the [`vscode-markdownlint`](https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint) plugin to ensure `markdownlint` violations are surfaced in the file. This plugin should flag rules based off your `.markdownlint-cli2.cjs` configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new step.
👋 Hello and thanks for pinging us! An accessibility first responder will review this soon.
|
@@ -0,0 +1,12 @@ | |||
const options = require('./index.js').init({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Converting to use markdownlint-cli2
in this project to align with our recs.
Fixes: #19
This PR updates the docs to recommend using
markdownlint-cli2
because it is compatible with the VSCode plugin, whilemarkdownlint-cli
is not. This updates the configuration setup accordingly. I've replaced the configuration setup for the markdownlinting of this repo as well.Additionally, this PR introduces a list of the rules defined by this library. We can introduce more comprehensive docs for these rules as part of #12.