Skip to content

Commit

Permalink
Merge pull request #186 from MikeMcC399/update/meta-type
Browse files Browse the repository at this point in the history
chore: add meta.type to rules
  • Loading branch information
jennifer-shehane committed Apr 24, 2024
2 parents 8227cbc + 4fded72 commit 404387a
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion .eslintrc.json
Expand Up @@ -16,7 +16,6 @@
],
"rules": {
"eslint-plugin/require-meta-schema": "off",
"eslint-plugin/require-meta-type": "off",
"n/no-extraneous-require": [
"error",
{
Expand Down
1 change: 1 addition & 0 deletions lib/rules/assertion-before-screenshot.js
Expand Up @@ -16,6 +16,7 @@ const assertionCommands = [

module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Assert on the page state before taking a screenshot, so the screenshot is consistent',
category: 'Possible Errors',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-assigning-return-values.js
Expand Up @@ -17,6 +17,7 @@ function get (obj, propertyString = '') {

module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Prevent assigning return values of cy calls',
category: 'Possible Errors',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-async-before.js
Expand Up @@ -2,6 +2,7 @@

module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Prevent using async/await in Cypress before methods',
category: 'Possible Errors',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-async-tests.js
Expand Up @@ -2,6 +2,7 @@

module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Prevent using async/await in Cypress test cases',
category: 'Possible Errors',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-force.js
Expand Up @@ -6,6 +6,7 @@

module.exports = {
meta: {
type: 'suggestion',
docs: {
description: 'Disallow using of \'force: true\' option for click and type calls',
category: 'Possible Errors',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-pause.js
Expand Up @@ -6,6 +6,7 @@

module.exports = {
meta: {
type: 'suggestion',
docs: {
description: 'Disallow using of \'cy.pause\' calls',
category: 'Possible Errors',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-unnecessary-waiting.js
Expand Up @@ -2,6 +2,7 @@

module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Prevent waiting for arbitrary time periods',
category: 'Possible Errors',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/require-data-selectors.js
Expand Up @@ -2,6 +2,7 @@

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',
category: 'Possible Errors',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/unsafe-to-chain-command.js
Expand Up @@ -69,6 +69,7 @@ const getDefaultOptions = (context) => {
/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'problem',
docs: {
description: DESCRIPTION,
category: 'Possible Errors',
Expand Down

0 comments on commit 404387a

Please sign in to comment.