Skip to content

Commit e47aedd

Browse files
authored
Merge branch 'master' into user/tom9744/recursive-no-pause
2 parents 198c6f5 + 404387a commit e47aedd

10 files changed

+9
-1
lines changed

.eslintrc.json

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
],
1717
"rules": {
1818
"eslint-plugin/require-meta-schema": "off",
19-
"eslint-plugin/require-meta-type": "off",
2019
"n/no-extraneous-require": [
2120
"error",
2221
{

lib/rules/assertion-before-screenshot.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const assertionCommands = [
1616

1717
module.exports = {
1818
meta: {
19+
type: 'problem',
1920
docs: {
2021
description: 'Assert on the page state before taking a screenshot, so the screenshot is consistent',
2122
category: 'Possible Errors',

lib/rules/no-assigning-return-values.js

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function get (obj, propertyString = '') {
1717

1818
module.exports = {
1919
meta: {
20+
type: 'problem',
2021
docs: {
2122
description: 'Prevent assigning return values of cy calls',
2223
category: 'Possible Errors',

lib/rules/no-async-before.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module.exports = {
44
meta: {
5+
type: 'problem',
56
docs: {
67
description: 'Prevent using async/await in Cypress before methods',
78
category: 'Possible Errors',

lib/rules/no-async-tests.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module.exports = {
44
meta: {
5+
type: 'problem',
56
docs: {
67
description: 'Prevent using async/await in Cypress test cases',
78
category: 'Possible Errors',

lib/rules/no-force.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
module.exports = {
88
meta: {
9+
type: 'suggestion',
910
docs: {
1011
description: 'Disallow using of \'force: true\' option for click and type calls',
1112
category: 'Possible Errors',

lib/rules/no-pause.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
module.exports = {
88
meta: {
9+
type: 'suggestion',
910
docs: {
1011
description: 'Disallow using of \'cy.pause\' calls',
1112
category: 'Possible Errors',

lib/rules/no-unnecessary-waiting.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module.exports = {
44
meta: {
5+
type: 'problem',
56
docs: {
67
description: 'Prevent waiting for arbitrary time periods',
78
category: 'Possible Errors',

lib/rules/require-data-selectors.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module.exports = {
44
meta: {
5+
type: 'suggestion',
56
docs: {
67
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',
78
category: 'Possible Errors',

lib/rules/unsafe-to-chain-command.js

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const getDefaultOptions = (context) => {
6969
/** @type {import('eslint').Rule.RuleModule} */
7070
module.exports = {
7171
meta: {
72+
type: 'problem',
7273
docs: {
7374
description: DESCRIPTION,
7475
category: 'Possible Errors',

0 commit comments

Comments
 (0)