@typescript-eslint/eslint-plugin 7.5.1-alpha.9 → 7.6.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.
- package/docs/rules/prefer-optional-chain.mdx +7 -14
- package/package.json +13 -13
|
@@ -102,8 +102,7 @@ thing && thing.toString();
|
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
</TabItem>
|
|
105
|
-
<TabItem value="✅ Correct">
|
|
106
|
-
for `checkAny: false`
|
|
105
|
+
<TabItem value="✅ Correct for `checkAny: false`">
|
|
107
106
|
|
|
108
107
|
```ts option='{ "checkAny": false }'
|
|
109
108
|
declare const thing: any;
|
|
@@ -129,8 +128,7 @@ thing && thing.toString();
|
|
|
129
128
|
```
|
|
130
129
|
|
|
131
130
|
</TabItem>
|
|
132
|
-
<TabItem value="✅ Correct">
|
|
133
|
-
for `checkUnknown: false`
|
|
131
|
+
<TabItem value="✅ Correct for `checkUnknown: false`">
|
|
134
132
|
|
|
135
133
|
```ts option='{ "checkUnknown": false }'
|
|
136
134
|
declare const thing: unknown;
|
|
@@ -156,8 +154,7 @@ thing && thing.toString();
|
|
|
156
154
|
```
|
|
157
155
|
|
|
158
156
|
</TabItem>
|
|
159
|
-
<TabItem value="✅ Correct">
|
|
160
|
-
for `checkString: false`
|
|
157
|
+
<TabItem value="✅ Correct for `checkString: false`">
|
|
161
158
|
|
|
162
159
|
```ts option='{ "checkString": false }'
|
|
163
160
|
declare const thing: string;
|
|
@@ -183,8 +180,7 @@ thing && thing.toString();
|
|
|
183
180
|
```
|
|
184
181
|
|
|
185
182
|
</TabItem>
|
|
186
|
-
<TabItem value="✅ Correct">
|
|
187
|
-
for `checkNumber: false`
|
|
183
|
+
<TabItem value="✅ Correct for `checkNumber: false`">
|
|
188
184
|
|
|
189
185
|
```ts option='{ "checkNumber": false }'
|
|
190
186
|
declare const thing: number;
|
|
@@ -224,8 +220,7 @@ thing && thing.toString();
|
|
|
224
220
|
```
|
|
225
221
|
|
|
226
222
|
</TabItem>
|
|
227
|
-
<TabItem value="✅ Correct">
|
|
228
|
-
for `checkBoolean: false`
|
|
223
|
+
<TabItem value="✅ Correct for `checkBoolean: false`">
|
|
229
224
|
|
|
230
225
|
```ts option='{ "checkBoolean": false }'
|
|
231
226
|
declare const thing: true;
|
|
@@ -251,8 +246,7 @@ thing && thing.toString();
|
|
|
251
246
|
```
|
|
252
247
|
|
|
253
248
|
</TabItem>
|
|
254
|
-
<TabItem value="✅ Correct">
|
|
255
|
-
for `checkBigInt: false`
|
|
249
|
+
<TabItem value="✅ Correct for `checkBigInt: false`">
|
|
256
250
|
|
|
257
251
|
```ts option='{ "checkBigInt": false }'
|
|
258
252
|
declare const thing: bigint;
|
|
@@ -277,8 +271,7 @@ thing1 && thing1.toString();
|
|
|
277
271
|
```
|
|
278
272
|
|
|
279
273
|
</TabItem>
|
|
280
|
-
<TabItem value="✅ Correct">
|
|
281
|
-
for `requireNullish: true`
|
|
274
|
+
<TabItem value="✅ Correct for `requireNullish: true`">
|
|
282
275
|
|
|
283
276
|
```ts option='{ "requireNullish": true }'
|
|
284
277
|
declare const thing1: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/eslint-plugin",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"description": "TypeScript plugin for ESLint",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -61,25 +61,25 @@
|
|
|
61
61
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@eslint-community/regexpp": "^4.
|
|
65
|
-
"@typescript-eslint/scope-manager": "7.
|
|
66
|
-
"@typescript-eslint/type-utils": "7.
|
|
67
|
-
"@typescript-eslint/utils": "7.
|
|
68
|
-
"@typescript-eslint/visitor-keys": "7.
|
|
64
|
+
"@eslint-community/regexpp": "^4.10.0",
|
|
65
|
+
"@typescript-eslint/scope-manager": "7.6.0",
|
|
66
|
+
"@typescript-eslint/type-utils": "7.6.0",
|
|
67
|
+
"@typescript-eslint/utils": "7.6.0",
|
|
68
|
+
"@typescript-eslint/visitor-keys": "7.6.0",
|
|
69
69
|
"debug": "^4.3.4",
|
|
70
70
|
"graphemer": "^1.4.0",
|
|
71
|
-
"ignore": "^5.
|
|
71
|
+
"ignore": "^5.3.1",
|
|
72
72
|
"natural-compare": "^1.4.0",
|
|
73
|
-
"semver": "^7.
|
|
74
|
-
"ts-api-utils": "^1.0
|
|
73
|
+
"semver": "^7.6.0",
|
|
74
|
+
"ts-api-utils": "^1.3.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/debug": "*",
|
|
78
78
|
"@types/marked": "*",
|
|
79
79
|
"@types/mdast": "^4.0.3",
|
|
80
80
|
"@types/natural-compare": "*",
|
|
81
|
-
"@typescript-eslint/rule-schema-to-typescript-types": "7.
|
|
82
|
-
"@typescript-eslint/rule-tester": "7.
|
|
81
|
+
"@typescript-eslint/rule-schema-to-typescript-types": "7.6.0",
|
|
82
|
+
"@typescript-eslint/rule-tester": "7.6.0",
|
|
83
83
|
"ajv": "^6.12.6",
|
|
84
84
|
"chalk": "^5.3.0",
|
|
85
85
|
"cross-env": "^7.0.3",
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
"jest-specific-snapshot": "^8.0.0",
|
|
91
91
|
"json-schema": "*",
|
|
92
92
|
"markdown-table": "^3.0.3",
|
|
93
|
-
"marked": "^5.1.
|
|
93
|
+
"marked": "^5.1.2",
|
|
94
94
|
"mdast-util-from-markdown": "^2.0.0",
|
|
95
95
|
"mdast-util-mdx": "^3.0.0",
|
|
96
96
|
"micromark-extension-mdxjs": "^3.0.0",
|
|
97
|
-
"prettier": "^3.
|
|
97
|
+
"prettier": "^3.2.5",
|
|
98
98
|
"rimraf": "*",
|
|
99
99
|
"title-case": "^3.0.3",
|
|
100
100
|
"tsx": "*",
|