Skip to content

Commit c8bb00d

Browse files
chore: updated v6 blog post for new 'final final' configs
1 parent ecb57de commit c8bb00d

File tree

1 file changed

+26
-32
lines changed

1 file changed

+26
-32
lines changed

Diff for: packages/website/blog/2023-07-09-announcing-typescript-eslint-v6.md

+26-32
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Miscellaneous changes to all shared configurations include:
158158
'no-empty-function': '...',
159159
'@typescript-eslint/no-empty-function': '...',
160160
'@typescript-eslint/no-empty-interface': '...',
161-
- '@typescript-eslint/no-explicit-any': '...',
161+
'@typescript-eslint/no-explicit-any': '...',
162162
'@typescript-eslint/no-extra-non-null-assertion': '...',
163163
- 'no-extra-semi': '...',
164164
- '@typescript-eslint/no-extra-semi': '...',
@@ -179,8 +179,6 @@ Miscellaneous changes to all shared configurations include:
179179
+ '@typescript-eslint/prefer-for-of': '...',
180180
+ '@typescript-eslint/prefer-function-type': '...',
181181
'@typescript-eslint/prefer-namespace-keyword': '...',
182-
+ '@typescript-eslint/prefer-optional-chain': '...',
183-
+ '@typescript-eslint/sort-type-constituents': '...',
184182
'@typescript-eslint/triple-slash-reference': '...',
185183
}
186184
```
@@ -209,13 +207,12 @@ Miscellaneous changes to all shared configurations include:
209207
'@typescript-eslint/no-array-constructor': '...',
210208
+ '@typescript-eslint/no-base-to-string': '...',
211209
+ '@typescript-eslint/no-confusing-non-null-assertion': '...',
212-
+ '@typescript-eslint/no-confusing-void-expression': '...',
213210
+ '@typescript-eslint/no-duplicate-enum-values': '...',
214211
+ '@typescript-eslint/no-duplicate-type-constituents': '...',
215212
'no-empty-function': '...',
216213
'@typescript-eslint/no-empty-function': '...',
217214
'@typescript-eslint/no-empty-interface': '...',
218-
- '@typescript-eslint/no-explicit-any': '...',
215+
'@typescript-eslint/no-explicit-any': '...',
219216
'@typescript-eslint/no-extra-non-null-assertion': '...',
220217
- 'no-extra-semi': '...',
221218
- '@typescript-eslint/no-extra-semi': '...',
@@ -257,7 +254,6 @@ Miscellaneous changes to all shared configurations include:
257254
'@typescript-eslint/require-await': '...',
258255
'@typescript-eslint/restrict-plus-operands': '...',
259256
'@typescript-eslint/restrict-template-expressions': '...',
260-
+ '@typescript-eslint/sort-type-constituents': '...',
261257
'@typescript-eslint/triple-slash-reference': '...',
262258
'@typescript-eslint/unbound-method': '...',
263259
}
@@ -319,6 +315,29 @@ const v5RecommendedRequiringTypeChecking = {
319315
'@typescript-eslint/unbound-method': 'error',
320316
};
321317

318+
const v6Recommended = {
319+
'@typescript-eslint/ban-ts-comment': 'error',
320+
'@typescript-eslint/ban-types': 'error',
321+
'no-array-constructor': 'off',
322+
'@typescript-eslint/no-array-constructor': 'error',
323+
'@typescript-eslint/no-duplicate-enum-values': 'error',
324+
'@typescript-eslint/no-explicit-any': 'error',
325+
'@typescript-eslint/no-extra-non-null-assertion': 'error',
326+
'no-loss-of-precision': 'off',
327+
'@typescript-eslint/no-loss-of-precision': 'error',
328+
'@typescript-eslint/no-misused-new': 'error',
329+
'@typescript-eslint/no-namespace': 'error',
330+
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
331+
'@typescript-eslint/no-this-alias': 'error',
332+
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
333+
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
334+
'no-unused-vars': 'off',
335+
'@typescript-eslint/no-unused-vars': 'error',
336+
'@typescript-eslint/no-var-requires': 'error',
337+
'@typescript-eslint/prefer-as-const': 'error',
338+
'@typescript-eslint/triple-slash-reference': 'error',
339+
};
340+
322341
const v6RecommendedTypeChecked = {
323342
'@typescript-eslint/await-thenable': 'error',
324343
'@typescript-eslint/ban-ts-comment': 'error',
@@ -328,6 +347,7 @@ const v6RecommendedTypeChecked = {
328347
'@typescript-eslint/no-base-to-string': 'error',
329348
'@typescript-eslint/no-duplicate-enum-values': 'error',
330349
'@typescript-eslint/no-duplicate-type-constituents': 'error',
350+
'@typescript-eslint/no-explicit-any': 'error',
331351
'@typescript-eslint/no-extra-non-null-assertion': 'error',
332352
'@typescript-eslint/no-floating-promises': 'error',
333353
'@typescript-eslint/no-for-in-array': 'error',
@@ -362,28 +382,6 @@ const v6RecommendedTypeChecked = {
362382
'@typescript-eslint/unbound-method': 'error',
363383
};
364384

365-
const v6Recommended = {
366-
'@typescript-eslint/ban-ts-comment': 'error',
367-
'@typescript-eslint/ban-types': 'error',
368-
'no-array-constructor': 'off',
369-
'@typescript-eslint/no-array-constructor': 'error',
370-
'@typescript-eslint/no-duplicate-enum-values': 'error',
371-
'@typescript-eslint/no-extra-non-null-assertion': 'error',
372-
'no-loss-of-precision': 'off',
373-
'@typescript-eslint/no-loss-of-precision': 'error',
374-
'@typescript-eslint/no-misused-new': 'error',
375-
'@typescript-eslint/no-namespace': 'error',
376-
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
377-
'@typescript-eslint/no-this-alias': 'error',
378-
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
379-
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
380-
'no-unused-vars': 'off',
381-
'@typescript-eslint/no-unused-vars': 'error',
382-
'@typescript-eslint/no-var-requires': 'error',
383-
'@typescript-eslint/prefer-as-const': 'error',
384-
'@typescript-eslint/triple-slash-reference': 'error',
385-
};
386-
387385
const v6Stylistic = {
388386
'@typescript-eslint/adjacent-overload-signatures': 'error',
389387
'@typescript-eslint/array-type': 'error',
@@ -401,8 +399,6 @@ const v6Stylistic = {
401399
'@typescript-eslint/prefer-for-of': 'error',
402400
'@typescript-eslint/prefer-function-type': 'error',
403401
'@typescript-eslint/prefer-namespace-keyword': 'error',
404-
'@typescript-eslint/prefer-optional-chain': 'error',
405-
'@typescript-eslint/sort-type-constituents': 'error',
406402
};
407403

408404
const v6StylisticTypeChecked = {
@@ -417,7 +413,6 @@ const v6StylisticTypeChecked = {
417413
'dot-notation': 'off',
418414
'@typescript-eslint/dot-notation': 'error',
419415
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
420-
'@typescript-eslint/no-confusing-void-expression': 'error',
421416
'no-empty-function': 'off',
422417
'@typescript-eslint/no-empty-function': 'error',
423418
'@typescript-eslint/no-empty-interface': 'error',
@@ -429,7 +424,6 @@ const v6StylisticTypeChecked = {
429424
'@typescript-eslint/prefer-nullish-coalescing': 'error',
430425
'@typescript-eslint/prefer-optional-chain': 'error',
431426
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
432-
'@typescript-eslint/sort-type-constituents': 'error',
433427
};
434428

435429
function createDiffPatch(v5, v6) {

0 commit comments

Comments
 (0)