@typescript-eslint/eslint-plugin 6.2.2-alpha.8 → 6.2.2-alpha.9

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.
@@ -8,11 +8,11 @@ description: 'Enforce consistent returning of awaited values.'
8
8
 
9
9
  Returning an awaited promise can make sense for better stack trace information as well as for consistent error handling (returned promises will not be caught in an async function try/catch).
10
10
 
11
- ## Examples
12
-
13
11
  This rule builds on top of the [`eslint/no-return-await`](https://eslint.org/docs/rules/no-return-await) rule.
14
12
  It expands upon the base rule to add support for optionally requiring `return await` in certain cases.
15
13
 
14
+ The extended rule is named `return-await` instead of `no-return-await` because the extended rule can enforce the positive or the negative. Additionally, while the core rule is now deprecated, the extended rule is still useful in many contexts.
15
+
16
16
  ## Options
17
17
 
18
18
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/eslint-plugin",
3
- "version": "6.2.2-alpha.8+cc9a46d01",
3
+ "version": "6.2.2-alpha.9+56919e497",
4
4
  "description": "TypeScript plugin for ESLint",
5
5
  "files": [
6
6
  "dist",
@@ -57,10 +57,10 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@eslint-community/regexpp": "^4.5.1",
60
- "@typescript-eslint/scope-manager": "6.2.2-alpha.8+cc9a46d01",
61
- "@typescript-eslint/type-utils": "6.2.2-alpha.8+cc9a46d01",
62
- "@typescript-eslint/utils": "6.2.2-alpha.8+cc9a46d01",
63
- "@typescript-eslint/visitor-keys": "6.2.2-alpha.8+cc9a46d01",
60
+ "@typescript-eslint/scope-manager": "6.2.2-alpha.9+56919e497",
61
+ "@typescript-eslint/type-utils": "6.2.2-alpha.9+56919e497",
62
+ "@typescript-eslint/utils": "6.2.2-alpha.9+56919e497",
63
+ "@typescript-eslint/visitor-keys": "6.2.2-alpha.9+56919e497",
64
64
  "debug": "^4.3.4",
65
65
  "graphemer": "^1.4.0",
66
66
  "ignore": "^5.2.4",
@@ -75,7 +75,7 @@
75
75
  "@types/natural-compare": "*",
76
76
  "@types/prettier": "*",
77
77
  "@typescript-eslint/rule-schema-to-typescript-types": "6.2.1",
78
- "@typescript-eslint/rule-tester": "6.2.2-alpha.8+cc9a46d01",
78
+ "@typescript-eslint/rule-tester": "6.2.2-alpha.9+56919e497",
79
79
  "ajv": "^6.12.6",
80
80
  "chalk": "^5.3.0",
81
81
  "cross-fetch": "*",
@@ -100,5 +100,5 @@
100
100
  "type": "opencollective",
101
101
  "url": "https://opencollective.com/typescript-eslint"
102
102
  },
103
- "gitHead": "cc9a46d01bce4282ff841d5ccef5445984aff8f6"
103
+ "gitHead": "56919e4973db2557787fe7b66251ba9d69e31a00"
104
104
  }