chore: standardize meta.docs.description property #192
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
The eslint-plugin/require-meta-docs-description rule of eslint-plugin-eslint-plugin requires that the
meta.docs.description
property is properly populated. In particular it requires each rule to start with one of:None of the rule descriptions exactly meet this requirement.
no-assigning-return-values
cy
callsno-unnecessary-waiting
no-async-before
no-async-tests
unsafe-to-chain-command
no-force
force: true
with action commandsassertion-before-screenshot
require-data-selectors
no-pause
cy.pause()
parent commandFurthermore, if the npm module eslint-doc-generator from the ESLint team is used to auto-populate the list of rules in the Rules section of the README file then the
meta.docs.description
of each rule needs to be more concise.Documentation reference
Rule Structure documentation
ESLint rules for examples of rules which adhere to the required naming.
Changes
Config changes
Enable the rule eslint-plugin/require-meta-docs-description with the default option.
Content changes
assertion-before-screenshot
no-assigning-return-values
no-async-before
async
/await
in Cypressbefore
methodsno-async-tests
async
/await
in Cypress test casesno-force
force: true
with action commandsforce: true
with action commandsno-pause
cy.pause()
parent commandcy.pause()
callsno-unnecessary-waiting
require-data-selectors
data-*
attributes to provide context to your selectors and insulate them from CSS or JS changesdata-*
attribute selectorsunsafe-to-chain-command