Skip to content

Commit

Permalink
allowNumberAndString for @typescript-eslint/restrict-plus-operands
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmayer committed Apr 1, 2024
1 parent cac6b30 commit 4d2659c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ module.exports = defineConfig({
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/unified-signatures': 'off', // incompatible with our api docs generation

'@typescript-eslint/restrict-plus-operands': [
'error',
{
allowNumberAndString: true
},
],

// TODO @ST-DDT 2023-10-10: The following rules currently conflict with our code.
// Each rule should be checked whether it should be enabled/configured and the problems fixed, or stay disabled permanently.
'@typescript-eslint/no-confusing-void-expression': 'off',
Expand Down

0 comments on commit 4d2659c

Please sign in to comment.