eslint-plugin-cypress 0.0.0-dev.1109
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 +80 -0
- package/LICENSE +21 -0
- package/README.md +299 -0
- package/docs/rules/assertion-before-screenshot.md +28 -0
- package/docs/rules/no-and.md +37 -0
- package/docs/rules/no-assigning-return-values.md +11 -0
- package/docs/rules/no-async-before.md +52 -0
- package/docs/rules/no-async-tests.md +55 -0
- package/docs/rules/no-chained-get.md +21 -0
- package/docs/rules/no-debug.md +22 -0
- package/docs/rules/no-force.md +51 -0
- package/docs/rules/no-pause.md +22 -0
- package/docs/rules/no-unnecessary-waiting.md +11 -0
- package/docs/rules/no-xpath.md +34 -0
- package/docs/rules/require-data-selectors.md +59 -0
- package/docs/rules/unsafe-to-chain-command.md +33 -0
- package/lib/config/recommended.js +14 -0
- package/lib/index.d.ts +12 -0
- package/lib/index.js +65 -0
- package/lib/rules/assertion-before-screenshot.js +99 -0
- package/lib/rules/no-and.js +56 -0
- package/lib/rules/no-assigning-return-values.js +68 -0
- package/lib/rules/no-async-before.js +53 -0
- package/lib/rules/no-async-tests.js +53 -0
- package/lib/rules/no-chained-get.js +71 -0
- package/lib/rules/no-debug.js +52 -0
- package/lib/rules/no-force.js +79 -0
- package/lib/rules/no-pause.js +52 -0
- package/lib/rules/no-unnecessary-waiting.js +95 -0
- package/lib/rules/no-xpath.js +43 -0
- package/lib/rules/require-data-selectors.js +77 -0
- package/lib/rules/unsafe-to-chain-command.js +123 -0
- package/lib/utils/is-root-cypress.js +46 -0
- package/package.json +68 -0
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "eslint-plugin-cypress",
|
|
3
|
+
"version": "0.0.0-dev.1109",
|
|
4
|
+
"description": "An ESLint plugin for projects using Cypress",
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./lib/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"lib",
|
|
11
|
+
"docs",
|
|
12
|
+
"CONTRIBUTING.md"
|
|
13
|
+
],
|
|
14
|
+
"author": "Cypress-io",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"type": "commonjs",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"eslint",
|
|
19
|
+
"eslintplugin",
|
|
20
|
+
"cypress"
|
|
21
|
+
],
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/cypress-io/eslint-plugin-cypress.git"
|
|
25
|
+
},
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/cypress-io/eslint-plugin-cypress/issues"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/cypress-io/eslint-plugin-cypress#readme",
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"@typescript-eslint/parser": ">=8",
|
|
32
|
+
"eslint": ">=10"
|
|
33
|
+
},
|
|
34
|
+
"peerDependenciesMeta": {
|
|
35
|
+
"@typescript-eslint/parser": {
|
|
36
|
+
"optional": true
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"globals": "^17.12.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@eslint/js": "^10.0.1",
|
|
44
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
45
|
+
"@typescript-eslint/rule-tester": "^8.71.0",
|
|
46
|
+
"cypress": "^16.1.1",
|
|
47
|
+
"eslint": "^10.11.0",
|
|
48
|
+
"eslint-doc-generator": "^3.7.1",
|
|
49
|
+
"eslint-plugin-eslint-plugin": "^7.6.2",
|
|
50
|
+
"eslint-plugin-mocha": "^12.0.2",
|
|
51
|
+
"husky": "^9.1.7",
|
|
52
|
+
"prettier": "^3.9.9",
|
|
53
|
+
"typescript": "^6.0.3",
|
|
54
|
+
"typescript-eslint": "^8.71.0",
|
|
55
|
+
"vitest": "^5.0.3"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"lint": "eslint",
|
|
59
|
+
"lint-fix": "eslint --fix",
|
|
60
|
+
"format": "prettier --write .",
|
|
61
|
+
"format:check": "prettier --check .",
|
|
62
|
+
"test": "vitest run",
|
|
63
|
+
"prepare": "husky"
|
|
64
|
+
},
|
|
65
|
+
"allowScripts": {
|
|
66
|
+
"cypress": true
|
|
67
|
+
}
|
|
68
|
+
}
|