@typescript-eslint/eslint-plugin 6.2.2-alpha.4 → 6.2.2-alpha.6
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.
|
@@ -22,7 +22,7 @@ This rule will not work as expected if [`strictNullChecks`](https://www.typescri
|
|
|
22
22
|
|
|
23
23
|
### `ignoreTernaryTests`
|
|
24
24
|
|
|
25
|
-
Setting this option to `true`
|
|
25
|
+
Setting this option to `true` will cause the rule to ignore any ternary expressions that could be simplified by using the nullish coalescing operator. This is set to `false` by default.
|
|
26
26
|
|
|
27
27
|
Incorrect code for `ignoreTernaryTests: false`, and correct code for `ignoreTernaryTests: true`:
|
|
28
28
|
|
|
@@ -62,7 +62,7 @@ foo ?? 'a string';
|
|
|
62
62
|
|
|
63
63
|
### `ignoreConditionalTests`
|
|
64
64
|
|
|
65
|
-
Setting this option to `true`
|
|
65
|
+
Setting this option to `true` will cause the rule to ignore any cases that are located within a conditional test. This is set to `false` by default.
|
|
66
66
|
|
|
67
67
|
Generally expressions within conditional tests intentionally use the falsy fallthrough behavior of the logical or operator, meaning that fixing the operator to the nullish coalesce operator could cause bugs.
|
|
68
68
|
|
|
@@ -104,7 +104,7 @@ a ?? b ? true : false;
|
|
|
104
104
|
|
|
105
105
|
### `ignoreMixedLogicalExpressions`
|
|
106
106
|
|
|
107
|
-
Setting this option to `true`
|
|
107
|
+
Setting this option to `true` will cause the rule to ignore any logical or expressions that are part of a mixed logical expression (with `&&`). This is set to `false` by default.
|
|
108
108
|
|
|
109
109
|
Generally expressions within mixed logical expressions intentionally use the falsy fallthrough behavior of the logical or operator, meaning that fixing the operator to the nullish coalesce operator could cause bugs.
|
|
110
110
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/eslint-plugin",
|
|
3
|
-
"version": "6.2.2-alpha.
|
|
3
|
+
"version": "6.2.2-alpha.6+8b17a25e0",
|
|
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.
|
|
61
|
-
"@typescript-eslint/type-utils": "6.2.2-alpha.
|
|
62
|
-
"@typescript-eslint/utils": "6.2.2-alpha.
|
|
63
|
-
"@typescript-eslint/visitor-keys": "6.2.2-alpha.
|
|
60
|
+
"@typescript-eslint/scope-manager": "6.2.2-alpha.6+8b17a25e0",
|
|
61
|
+
"@typescript-eslint/type-utils": "6.2.2-alpha.6+8b17a25e0",
|
|
62
|
+
"@typescript-eslint/utils": "6.2.2-alpha.6+8b17a25e0",
|
|
63
|
+
"@typescript-eslint/visitor-keys": "6.2.2-alpha.6+8b17a25e0",
|
|
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.
|
|
78
|
+
"@typescript-eslint/rule-tester": "6.2.2-alpha.6+8b17a25e0",
|
|
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": "
|
|
103
|
+
"gitHead": "8b17a25e0f462bde52fdd318411bd85c0f7fd914"
|
|
104
104
|
}
|