Skip to content

Commit

Permalink
Merge pull request #188 from MikeMcC399/update/meta-url
Browse files Browse the repository at this point in the history
chore: standardize meta.url property
  • Loading branch information
jennifer-shehane committed Apr 24, 2024
2 parents 5c1b59a + 8071dd8 commit 131d3a7
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.json
Expand Up @@ -15,6 +15,12 @@
"plugin:mocha/recommended"
],
"rules": {
"eslint-plugin/require-meta-docs-url": [
"error",
{
"pattern": "https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/{{name}}.md"
}
],
"n/no-extraneous-require": [
"error",
{
Expand Down
1 change: 1 addition & 0 deletions lib/rules/assertion-before-screenshot.js
Expand Up @@ -21,6 +21,7 @@ module.exports = {
description: 'Assert on the page state before taking a screenshot, so the screenshot is consistent',
category: 'Possible Errors',
recommended: false,
url: 'https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/assertion-before-screenshot.md',
},
schema: [],
messages: {
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-assigning-return-values.js
Expand Up @@ -22,7 +22,7 @@ module.exports = {
description: 'Prevent assigning return values of cy calls',
category: 'Possible Errors',
recommended: true,
url: 'https://on.cypress.io/best-practices#Assigning-Return-Values',
url: 'https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/no-assigning-return-values.md',
},
schema: [],
messages: {
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-async-before.js
Expand Up @@ -7,6 +7,7 @@ module.exports = {
description: 'Prevent using async/await in Cypress before methods',
category: 'Possible Errors',
recommended: true,
url: 'https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/no-async-before.md',
},
schema: [],
messages: {
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-async-tests.js
Expand Up @@ -7,6 +7,7 @@ module.exports = {
description: 'Prevent using async/await in Cypress test cases',
category: 'Possible Errors',
recommended: true,
url: 'https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/no-async-tests.md',
},
schema: [],
messages: {
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-force.js
Expand Up @@ -11,6 +11,7 @@ module.exports = {
description: 'Disallow using of \'force: true\' option for click and type calls',
category: 'Possible Errors',
recommended: false,
url: 'https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/no-force.md',
},
fixable: null, // or "code" or "whitespace"
schema: [],
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-pause.js
Expand Up @@ -11,6 +11,7 @@ module.exports = {
description: 'Disallow using of \'cy.pause\' calls',
category: 'Possible Errors',
recommended: false,
url: 'https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/no-pause.md',
},
fixable: null, // or "code" or "whitespace"
schema: [],
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-unnecessary-waiting.js
Expand Up @@ -7,7 +7,7 @@ module.exports = {
description: 'Prevent waiting for arbitrary time periods',
category: 'Possible Errors',
recommended: true,
url: 'https://on.cypress.io/best-practices#Unnecessary-Waiting',
url: 'https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/no-unnecessary-waiting.md',
},
schema: [],
messages: {
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/require-data-selectors.js
Expand Up @@ -4,10 +4,10 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
description: 'Use data-* attributes to provide context to your selectors and insulate them from CSS or JS changes https://docs.cypress.io/guides/references/best-practices.html#Selecting-Elements',
description: 'Use data-* attributes to provide context to your selectors and insulate them from CSS or JS changes',
category: 'Possible Errors',
recommended: false,
url: 'https://docs.cypress.io/guides/references/best-practices.html#Selecting-Elements',
url: 'https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/require-data-selectors.md',
},
schema: [],
messages: {
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/unsafe-to-chain-command.js
Expand Up @@ -74,7 +74,7 @@ module.exports = {
description: DESCRIPTION,
category: 'Possible Errors',
recommended: true,
url: 'https://docs.cypress.io/guides/core-concepts/retry-ability#Actions-should-be-at-the-end-of-chains-not-the-middle',
url: 'https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/unsafe-to-chain-command.md',
},
schema: [schema],
messages: {
Expand Down

0 comments on commit 131d3a7

Please sign in to comment.