Skip to content

Commit

Permalink
chore: updated v6 blog post for new 'final final' configs
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Jul 7, 2023
1 parent ecb57de commit c8bb00d
Showing 1 changed file with 26 additions and 32 deletions.
58 changes: 26 additions & 32 deletions packages/website/blog/2023-07-09-announcing-typescript-eslint-v6.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Miscellaneous changes to all shared configurations include:
'no-empty-function': '...',
'@typescript-eslint/no-empty-function': '...',
'@typescript-eslint/no-empty-interface': '...',
- '@typescript-eslint/no-explicit-any': '...',
'@typescript-eslint/no-explicit-any': '...',
'@typescript-eslint/no-extra-non-null-assertion': '...',
- 'no-extra-semi': '...',
- '@typescript-eslint/no-extra-semi': '...',
Expand All @@ -179,8 +179,6 @@ Miscellaneous changes to all shared configurations include:
+ '@typescript-eslint/prefer-for-of': '...',
+ '@typescript-eslint/prefer-function-type': '...',
'@typescript-eslint/prefer-namespace-keyword': '...',
+ '@typescript-eslint/prefer-optional-chain': '...',
+ '@typescript-eslint/sort-type-constituents': '...',
'@typescript-eslint/triple-slash-reference': '...',
}
```
Expand Down Expand Up @@ -209,13 +207,12 @@ Miscellaneous changes to all shared configurations include:
'@typescript-eslint/no-array-constructor': '...',
+ '@typescript-eslint/no-base-to-string': '...',
+ '@typescript-eslint/no-confusing-non-null-assertion': '...',
+ '@typescript-eslint/no-confusing-void-expression': '...',
+ '@typescript-eslint/no-duplicate-enum-values': '...',
+ '@typescript-eslint/no-duplicate-type-constituents': '...',
'no-empty-function': '...',
'@typescript-eslint/no-empty-function': '...',
'@typescript-eslint/no-empty-interface': '...',
- '@typescript-eslint/no-explicit-any': '...',
'@typescript-eslint/no-explicit-any': '...',
'@typescript-eslint/no-extra-non-null-assertion': '...',
- 'no-extra-semi': '...',
- '@typescript-eslint/no-extra-semi': '...',
Expand Down Expand Up @@ -257,7 +254,6 @@ Miscellaneous changes to all shared configurations include:
'@typescript-eslint/require-await': '...',
'@typescript-eslint/restrict-plus-operands': '...',
'@typescript-eslint/restrict-template-expressions': '...',
+ '@typescript-eslint/sort-type-constituents': '...',
'@typescript-eslint/triple-slash-reference': '...',
'@typescript-eslint/unbound-method': '...',
}
Expand Down Expand Up @@ -319,6 +315,29 @@ const v5RecommendedRequiringTypeChecking = {
'@typescript-eslint/unbound-method': 'error',
};

const v6Recommended = {
'@typescript-eslint/ban-ts-comment': 'error',
'@typescript-eslint/ban-types': 'error',
'no-array-constructor': 'off',
'@typescript-eslint/no-array-constructor': 'error',
'@typescript-eslint/no-duplicate-enum-values': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-extra-non-null-assertion': 'error',
'no-loss-of-precision': 'off',
'@typescript-eslint/no-loss-of-precision': 'error',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-namespace': 'error',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
'@typescript-eslint/no-this-alias': 'error',
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/prefer-as-const': 'error',
'@typescript-eslint/triple-slash-reference': 'error',
};

const v6RecommendedTypeChecked = {
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/ban-ts-comment': 'error',
Expand All @@ -328,6 +347,7 @@ const v6RecommendedTypeChecked = {
'@typescript-eslint/no-base-to-string': 'error',
'@typescript-eslint/no-duplicate-enum-values': 'error',
'@typescript-eslint/no-duplicate-type-constituents': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-extra-non-null-assertion': 'error',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-for-in-array': 'error',
Expand Down Expand Up @@ -362,28 +382,6 @@ const v6RecommendedTypeChecked = {
'@typescript-eslint/unbound-method': 'error',
};

const v6Recommended = {
'@typescript-eslint/ban-ts-comment': 'error',
'@typescript-eslint/ban-types': 'error',
'no-array-constructor': 'off',
'@typescript-eslint/no-array-constructor': 'error',
'@typescript-eslint/no-duplicate-enum-values': 'error',
'@typescript-eslint/no-extra-non-null-assertion': 'error',
'no-loss-of-precision': 'off',
'@typescript-eslint/no-loss-of-precision': 'error',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-namespace': 'error',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
'@typescript-eslint/no-this-alias': 'error',
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/prefer-as-const': 'error',
'@typescript-eslint/triple-slash-reference': 'error',
};

const v6Stylistic = {
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/array-type': 'error',
Expand All @@ -401,8 +399,6 @@ const v6Stylistic = {
'@typescript-eslint/prefer-for-of': 'error',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/prefer-namespace-keyword': 'error',
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/sort-type-constituents': 'error',
};

const v6StylisticTypeChecked = {
Expand All @@ -417,7 +413,6 @@ const v6StylisticTypeChecked = {
'dot-notation': 'off',
'@typescript-eslint/dot-notation': 'error',
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
'@typescript-eslint/no-confusing-void-expression': 'error',
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': 'error',
'@typescript-eslint/no-empty-interface': 'error',
Expand All @@ -429,7 +424,6 @@ const v6StylisticTypeChecked = {
'@typescript-eslint/prefer-nullish-coalescing': 'error',
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
'@typescript-eslint/sort-type-constituents': 'error',
};

function createDiffPatch(v5, v6) {
Expand Down

0 comments on commit c8bb00d

Please sign in to comment.