@typescript-eslint/eslint-plugin 8.7.1-alpha.0 → 8.7.1-alpha.2
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.
@@ -19,6 +19,8 @@ For example, given `type A = string` and `type T = string | A`, this rule would
|
|
19
19
|
|
20
20
|
This rule also disallows explicitly listing `undefined` in a type union when a function parameter is marked as optional.
|
21
21
|
Doing so is unnecessary.
|
22
|
+
Please note that this check only applies to parameters, not properties.
|
23
|
+
Therefore, it does not conflict with the [`exactOptionalPropertyTypes`](https://www.typescriptlang.org/tsconfig/#exactOptionalPropertyTypes) TypeScript compiler setting.
|
22
24
|
|
23
25
|
<Tabs>
|
24
26
|
<TabItem value="❌ Incorrect">
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@typescript-eslint/eslint-plugin",
|
3
|
-
"version": "8.7.1-alpha.
|
3
|
+
"version": "8.7.1-alpha.2",
|
4
4
|
"description": "TypeScript plugin for ESLint",
|
5
5
|
"files": [
|
6
6
|
"dist",
|
@@ -60,10 +60,10 @@
|
|
60
60
|
},
|
61
61
|
"dependencies": {
|
62
62
|
"@eslint-community/regexpp": "^4.10.0",
|
63
|
-
"@typescript-eslint/scope-manager": "8.7.1-alpha.
|
64
|
-
"@typescript-eslint/type-utils": "8.7.1-alpha.
|
65
|
-
"@typescript-eslint/utils": "8.7.1-alpha.
|
66
|
-
"@typescript-eslint/visitor-keys": "8.7.1-alpha.
|
63
|
+
"@typescript-eslint/scope-manager": "8.7.1-alpha.2",
|
64
|
+
"@typescript-eslint/type-utils": "8.7.1-alpha.2",
|
65
|
+
"@typescript-eslint/utils": "8.7.1-alpha.2",
|
66
|
+
"@typescript-eslint/visitor-keys": "8.7.1-alpha.2",
|
67
67
|
"graphemer": "^1.4.0",
|
68
68
|
"ignore": "^5.3.1",
|
69
69
|
"natural-compare": "^1.4.0",
|
@@ -74,8 +74,8 @@
|
|
74
74
|
"@types/marked": "^5.0.2",
|
75
75
|
"@types/mdast": "^4.0.3",
|
76
76
|
"@types/natural-compare": "*",
|
77
|
-
"@typescript-eslint/rule-schema-to-typescript-types": "8.7.1-alpha.
|
78
|
-
"@typescript-eslint/rule-tester": "8.7.1-alpha.
|
77
|
+
"@typescript-eslint/rule-schema-to-typescript-types": "8.7.1-alpha.2",
|
78
|
+
"@typescript-eslint/rule-tester": "8.7.1-alpha.2",
|
79
79
|
"ajv": "^6.12.6",
|
80
80
|
"cross-env": "^7.0.3",
|
81
81
|
"cross-fetch": "*",
|