-
Notifications
You must be signed in to change notification settings - Fork 151
Lint feature descriptions with Vale #3045
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
base: main
Are you sure you want to change the base?
Conversation
d75df18
to
5059a5d
Compare
@@ -1,5 +1,5 @@ | |||
name: "@charset" | |||
description: The `@charset` CSS at-rule specifies the character encoding of an external style sheet. | |||
description: The `@charset` CSS at-rule specifies the character encoding of an external style sheet. |
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.
I changed this file so it would get flagged on review. Before merging, I ought to undo this change, to show I'm just ignoring this suggestion.
@@ -1,5 +1,5 @@ | |||
name: <del> | |||
description: The `<del>` element element represents a range of text that has been deleted from a document, styling text as strikethrough by default. | |||
description: The `<del>` element element represents a range of text that has been deleted from a document, styling text as strikethrough by default. |
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.
I changed this file so it would get flagged on review. Before merging, I ought to push a change fixing it.
@@ -1,5 +1,5 @@ | |||
name: beforeunload | |||
description: "The `beforeunload` event is fired when the current window is about to be unloaded. Typically this is used to display a dialog to confirm if users really want to leave the page when there is unsaved data that would be lost." | |||
description: "The `beforeunload` event is fired when the current window is about to be unloaded. Typically you use this to display a dialog to confirm if users really want to leave the page when there is unsaved data that would be lost." |
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 (and several other feature changes) fix warnings or errors from Vale.
This PR imposes some automatic checks on feature descriptions using Vale.
I've turned on some default rules from Vale (like detecting words
doubleddoubled up) and a couple of rules from our guidelines. There are many other rules we could turn on (such as spelling) if we like this approach.See my self review (and generated comments) to see how this would work in practice.