@lvce-editor/eslint-config 18.15.1 → 18.17.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.
Files changed (2) hide show
  1. package/README.md +23 -0
  2. package/package.json +11 -11
package/README.md CHANGED
@@ -45,3 +45,26 @@ rules: {
45
45
  }],
46
46
  }
47
47
  ```
48
+
49
+ The recommended e2e configuration enables `e2e/require-awaited-opfs-cleanup`.
50
+ Create OPFS entries inside `try` and await matching `removeEntry` calls in `finally`;
51
+ use `{ recursive: true }` for directories. Nested entries may share their parent
52
+ directory's recursive cleanup. Writable streams also require an awaited `close()`
53
+ in `finally`, so failed writes and assertions still release test resources.
54
+ Acquisition immediately before the protecting `try` is supported. Conditional,
55
+ unawaited, deferred, mismatched, and unreachable cleanup is rejected.
56
+
57
+ ```ts
58
+ const root = await navigator.storage.getDirectory()
59
+ try {
60
+ const file = await root.getFileHandle('example.txt', { create: true })
61
+ const writable = await file.createWritable()
62
+ try {
63
+ await writable.write('example')
64
+ } finally {
65
+ await writable.close()
66
+ }
67
+ } finally {
68
+ await root.removeEntry('example.txt')
69
+ }
70
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/eslint-config",
3
- "version": "18.15.1",
3
+ "version": "18.17.0",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",
@@ -35,16 +35,16 @@
35
35
  "eslint-plugin-unicorn": "71.1.0",
36
36
  "eslint-plugin-yml": "3.6.0",
37
37
  "typescript-eslint": "8.63.0",
38
- "@lvce-editor/eslint-plugin-eslint-config": "18.15.1",
39
- "@lvce-editor/eslint-plugin-tsconfig": "18.15.1",
40
- "@lvce-editor/eslint-plugin-github-actions": "18.15.1",
41
- "@lvce-editor/eslint-plugin-nvmrc": "18.15.1",
42
- "@lvce-editor/eslint-plugin-regex": "18.15.1",
43
- "@lvce-editor/eslint-plugin-virtual-dom": "18.15.1",
44
- "@lvce-editor/eslint-plugin-e2e": "18.15.1",
45
- "@lvce-editor/eslint-plugin-devcontainer": "18.15.1",
46
- "@lvce-editor/eslint-plugin-extension-json": "18.15.1",
47
- "@lvce-editor/eslint-plugin-rpc": "18.15.1"
38
+ "@lvce-editor/eslint-plugin-eslint-config": "18.17.0",
39
+ "@lvce-editor/eslint-plugin-tsconfig": "18.17.0",
40
+ "@lvce-editor/eslint-plugin-github-actions": "18.17.0",
41
+ "@lvce-editor/eslint-plugin-nvmrc": "18.17.0",
42
+ "@lvce-editor/eslint-plugin-regex": "18.17.0",
43
+ "@lvce-editor/eslint-plugin-virtual-dom": "18.17.0",
44
+ "@lvce-editor/eslint-plugin-e2e": "18.17.0",
45
+ "@lvce-editor/eslint-plugin-devcontainer": "18.17.0",
46
+ "@lvce-editor/eslint-plugin-extension-json": "18.17.0",
47
+ "@lvce-editor/eslint-plugin-rpc": "18.17.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "eslint": ">=10.0.0 <11.0.0-0"