eslint-plugin-cypress 6.4.2 → 6.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -14
- package/lib/rules/no-and.js +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -53,22 +53,24 @@ These rules enforce some of the [best practices recommended for using Cypress](h
|
|
|
53
53
|
|
|
54
54
|
💼 Configurations enabled in.\
|
|
55
55
|
✅ Set in the `recommended` configuration.\
|
|
56
|
+
🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).\
|
|
56
57
|
❌ Deprecated.
|
|
57
58
|
|
|
58
|
-
| Name
|
|
59
|
-
| :----------------------------------------------------------------------- |
|
|
60
|
-
| [assertion-before-screenshot](docs/rules/assertion-before-screenshot.md) | require screenshots to be preceded by an assertion
|
|
61
|
-
| [no-
|
|
62
|
-
| [no-
|
|
63
|
-
| [no-async-
|
|
64
|
-
| [no-
|
|
65
|
-
| [no-
|
|
66
|
-
| [no-
|
|
67
|
-
| [no-
|
|
68
|
-
| [no-
|
|
69
|
-
| [no-
|
|
70
|
-
| [
|
|
71
|
-
| [
|
|
59
|
+
| Name | Description | 💼 | 🔧 | ❌ |
|
|
60
|
+
| :----------------------------------------------------------------------- | :-------------------------------------------------------------- | :- | :- | :- |
|
|
61
|
+
| [assertion-before-screenshot](docs/rules/assertion-before-screenshot.md) | require screenshots to be preceded by an assertion | | | |
|
|
62
|
+
| [no-and](docs/rules/no-and.md) | enforce `.should()` over `.and()` for starting assertion chains | | 🔧 | |
|
|
63
|
+
| [no-assigning-return-values](docs/rules/no-assigning-return-values.md) | disallow assigning return values of `cy` calls | ✅ | | |
|
|
64
|
+
| [no-async-before](docs/rules/no-async-before.md) | disallow using `async`/`await` in Cypress `before` methods | | | |
|
|
65
|
+
| [no-async-tests](docs/rules/no-async-tests.md) | disallow using `async`/`await` in Cypress test cases | ✅ | | |
|
|
66
|
+
| [no-chained-get](docs/rules/no-chained-get.md) | disallow chain of `cy.get()` calls | | | |
|
|
67
|
+
| [no-debug](docs/rules/no-debug.md) | disallow using `cy.debug()` calls | | | |
|
|
68
|
+
| [no-force](docs/rules/no-force.md) | disallow using `force: true` with action commands | | | |
|
|
69
|
+
| [no-pause](docs/rules/no-pause.md) | disallow using `cy.pause()` calls | | | |
|
|
70
|
+
| [no-unnecessary-waiting](docs/rules/no-unnecessary-waiting.md) | disallow waiting for arbitrary time periods | ✅ | | |
|
|
71
|
+
| [no-xpath](docs/rules/no-xpath.md) | disallow using `cy.xpath()` calls | | | ❌ |
|
|
72
|
+
| [require-data-selectors](docs/rules/require-data-selectors.md) | require `data-*` attribute selectors | | | |
|
|
73
|
+
| [unsafe-to-chain-command](docs/rules/unsafe-to-chain-command.md) | disallow actions within chains | ✅ | | |
|
|
72
74
|
|
|
73
75
|
<!-- end auto-generated rules list -->
|
|
74
76
|
<!-- prettier-ignore-end -->
|
package/lib/rules/no-and.js
CHANGED
|
@@ -7,7 +7,7 @@ module.exports = {
|
|
|
7
7
|
meta: {
|
|
8
8
|
type: 'suggestion',
|
|
9
9
|
docs: {
|
|
10
|
-
description: 'enforce
|
|
10
|
+
description: 'enforce `.should()` over `.and()` for starting assertion chains',
|
|
11
11
|
recommended: false,
|
|
12
12
|
url: 'https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/no-and.md',
|
|
13
13
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-cypress",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.3",
|
|
4
4
|
"description": "An ESLint plugin for projects using Cypress",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@eslint/js": "^10.0.1",
|
|
44
44
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
45
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
46
|
-
"cypress": "^15.18.
|
|
47
|
-
"eslint": "^10.
|
|
48
|
-
"eslint-plugin-eslint-plugin": "^7.4.
|
|
45
|
+
"@typescript-eslint/rule-tester": "^8.62.1",
|
|
46
|
+
"cypress": "^15.18.1",
|
|
47
|
+
"eslint": "^10.6.0",
|
|
48
|
+
"eslint-plugin-eslint-plugin": "^7.4.1",
|
|
49
49
|
"eslint-plugin-mocha": "^11.3.0",
|
|
50
50
|
"husky": "^9.1.7",
|
|
51
|
-
"prettier": "^3.
|
|
51
|
+
"prettier": "^3.9.4",
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
|
-
"typescript-eslint": "^8.
|
|
54
|
-
"vitest": "^4.1.
|
|
53
|
+
"typescript-eslint": "^8.62.1",
|
|
54
|
+
"vitest": "^4.1.10"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"lint": "eslint",
|