eslint-plugin-cypress 5.2.0 → 5.3.0
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/CONTRIBUTING.md +5 -1
- package/README.md +2 -2
- package/docs/rules/assertion-before-screenshot.md +3 -1
- package/docs/rules/no-assigning-return-values.md +3 -1
- package/docs/rules/no-async-before.md +3 -1
- package/docs/rules/no-async-tests.md +3 -1
- package/docs/rules/no-chained-get.md +3 -1
- package/docs/rules/no-debug.md +3 -1
- package/docs/rules/no-force.md +3 -1
- package/docs/rules/no-pause.md +3 -1
- package/docs/rules/no-unnecessary-waiting.md +3 -1
- package/docs/rules/no-xpath.md +3 -1
- package/docs/rules/require-data-selectors.md +3 -1
- package/docs/rules/unsafe-to-chain-command.md +3 -1
- package/lib/rules/unsafe-to-chain-command.js +1 -0
- package/package.json +12 -9
package/CONTRIBUTING.md
CHANGED
|
@@ -43,9 +43,13 @@ To add a new rule:
|
|
|
43
43
|
|
|
44
44
|
This plugin uses the ESLint [eslint-doc-generator](https://www.npmjs.com/package/eslint-doc-generator) to generate consistent documentation.
|
|
45
45
|
|
|
46
|
-
- Install with `npm install eslint-doc-generator -g`
|
|
46
|
+
- Install with `npm install eslint-doc-generator@latest -g`
|
|
47
47
|
- Run `eslint-doc-generator` in the root directory of the plugin
|
|
48
48
|
|
|
49
|
+
Note that [eslint-doc-generator](https://www.npmjs.com/package/eslint-doc-generator) has some unresolved issues running under
|
|
50
|
+
Microsoft Windows (see issue[#265](https://github.com/cypress-io/eslint-plugin-cypress/issues/265)).
|
|
51
|
+
Do not attempt to run under Windows until these issues are resolved.
|
|
52
|
+
|
|
49
53
|
## Merging pull requests
|
|
50
54
|
|
|
51
55
|
This information is for Cypress.io Members or Collaborators who merge pull requests:
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Note: If you installed ESLint globally then you must also install `eslint-plugin
|
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
Prerequisites: [ESLint](https://www.npmjs.com/package/eslint) `v9`. Lower versions are no longer supported.
|
|
9
|
+
Prerequisites: [ESLint](https://www.npmjs.com/package/eslint) `v9` or `v10`. Lower versions are no longer supported.
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
12
|
npm install eslint eslint-plugin-cypress --save-dev
|
|
@@ -20,7 +20,7 @@ yarn add eslint eslint-plugin-cypress --dev
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
-
ESLint `v9`
|
|
23
|
+
ESLint `v9` and `v10` use a [Flat config file](https://eslint.org/docs/latest/use/configure/configuration-files) format with filename `eslint.config.*js` by default. This plugin no longer supports the use of a deprecated [eslintrc-type](https://eslint.org/docs/latest/use/configure/configuration-files-deprecated) config file from previous ESLint versions.
|
|
24
24
|
|
|
25
25
|
To set up a configuration, add a file `eslint.config.mjs` to the root directory of your Cypress project and include the following instructions to import the available configurations using:
|
|
26
26
|
|
package/docs/rules/no-debug.md
CHANGED
package/docs/rules/no-force.md
CHANGED
package/docs/rules/no-pause.md
CHANGED
package/docs/rules/no-xpath.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-cypress",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "An ESLint plugin for projects using Cypress",
|
|
5
5
|
"main": "./lib/flat.js",
|
|
6
6
|
"exports": {
|
|
@@ -31,17 +31,20 @@
|
|
|
31
31
|
"eslint": ">=9"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"globals": "^16.
|
|
34
|
+
"globals": "^16.5.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@
|
|
38
|
-
"eslint": "^
|
|
39
|
-
"eslint
|
|
40
|
-
"eslint-plugin-
|
|
37
|
+
"@eslint/js": "^9.39.2",
|
|
38
|
+
"@stylistic/eslint-plugin": "^5.8.0",
|
|
39
|
+
"eslint": "^9.39.2",
|
|
40
|
+
"eslint-plugin-eslint-plugin": "^7.3.0",
|
|
41
|
+
"eslint-plugin-mocha": "^11.2.0",
|
|
41
42
|
"husky": "^9.1.7",
|
|
42
|
-
"prettier": "^3.
|
|
43
|
-
"semantic-release": "
|
|
44
|
-
"
|
|
43
|
+
"prettier": "^3.8.1",
|
|
44
|
+
"semantic-release": "^25.0.3",
|
|
45
|
+
"typescript": "^5.9.3",
|
|
46
|
+
"typescript-eslint": "^8.54.0",
|
|
47
|
+
"vitest": "^4.0.18"
|
|
45
48
|
},
|
|
46
49
|
"scripts": {
|
|
47
50
|
"lint": "eslint",
|