Skip to content

Commit

Permalink
fix(eslint): put restrict-template-expressions into rules for which t…
Browse files Browse the repository at this point in the history
…ypes are required
  • Loading branch information
Isokaeder committed May 15, 2024
1 parent c0407c7 commit 79c11f4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/eslint-config/source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,6 @@ const baseConfig = tseslint.config({
{ argsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_' },
],
'@typescript-eslint/no-use-before-define': 'error',
'@typescript-eslint/restrict-template-expressions': [
'error',
{
allowAny: false,
allowBoolean: false,
allowNullish: false,
allowNumber: true,
allowRegExp: false,
allowNever: false,
},
],

// Eslint
'dot-notation': 'warn',
Expand Down Expand Up @@ -274,6 +263,17 @@ const rulesRequiringTypes = {
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/prefer-nullish-coalescing': 'warn',
'@typescript-eslint/prefer-optional-chain': 'warn',
'@typescript-eslint/restrict-template-expressions': [
'error',
{
allowAny: false,
allowBoolean: false,
allowNullish: false,
allowNumber: true,
allowRegExp: false,
allowNever: false,
},
],
'@typescript-eslint/switch-exhaustiveness-check': 'error',
} satisfies SharedConfig.RulesRecord

Expand Down

0 comments on commit 79c11f4

Please sign in to comment.