eslint-plugin-executable-stories-playwright 2.1.6 → 2.1.7
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 +6 -5
- package/package.json +4 -8
- package/bin/intent.js +0 -3
package/README.md
CHANGED
|
@@ -37,12 +37,13 @@ export default [...playwrightExecutableStories.configs.recommended];
|
|
|
37
37
|
|
|
38
38
|
## Rules
|
|
39
39
|
|
|
40
|
-
| Rule
|
|
41
|
-
|
|
|
42
|
-
| `require-
|
|
43
|
-
| `require-
|
|
40
|
+
| Rule | Description | Config |
|
|
41
|
+
| ------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------- |
|
|
42
|
+
| `require-init-before-steps` | Step and doc calls must follow `story.init(testInfo)` in the same test. | recommended |
|
|
43
|
+
| `require-story-context-for-steps` | Legacy guard: top-level `given/when/then/and/but` must be inside an executable story context. | recommended |
|
|
44
|
+
| `require-test-context-for-doc-story` | Legacy guard: `doc.story(title)` must be called inside a `test()` callback. | recommended |
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
Prefer `test()` + `story.init(testInfo)` + `story.given`/`story.when`/`story.then`. Top-level step helpers remain exported for compatibility.
|
|
46
47
|
|
|
47
48
|
## Configs
|
|
48
49
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-executable-stories-playwright",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "ESLint rules for executable-stories-playwright:
|
|
5
|
+
"description": "ESLint rules for executable-stories-playwright: story.init and legacy story context guards",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"dist",
|
|
19
19
|
"skills",
|
|
20
|
-
"README.md"
|
|
21
|
-
"bin"
|
|
20
|
+
"README.md"
|
|
22
21
|
],
|
|
23
22
|
"repository": {
|
|
24
23
|
"type": "git",
|
|
@@ -46,14 +45,11 @@
|
|
|
46
45
|
"typescript": "^6.0.3",
|
|
47
46
|
"vitest": "^4.1.5",
|
|
48
47
|
"eslint-config-executable-stories": "0.2.0",
|
|
49
|
-
"executable-stories-vitest": "8.
|
|
48
|
+
"executable-stories-vitest": "8.2.0"
|
|
50
49
|
},
|
|
51
50
|
"engines": {
|
|
52
51
|
"node": ">=22"
|
|
53
52
|
},
|
|
54
|
-
"bin": {
|
|
55
|
-
"intent": "./bin/intent.js"
|
|
56
|
-
},
|
|
57
53
|
"scripts": {
|
|
58
54
|
"build": "tsup",
|
|
59
55
|
"type-check": "node -e \"const fs=require('fs');const {execSync}=require('child_process');const p=require('path').resolve(process.cwd(),'../executable-stories-playwright/package.json');if(!fs.existsSync(p)){console.log('Skipping type-check: executable-stories-playwright not in workspace');process.exit(0);}execSync('pnpm --filter executable-stories-playwright run build && tsc --noEmit',{stdio:'inherit'});\"",
|
package/bin/intent.js
DELETED