turn @typescript-eslint/prefer-regex-exec

This commit is contained in:
Ulf Gebhardt 2023-03-09 14:28:35 +01:00
parent b530576a84
commit e3add830c3
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -26,10 +26,12 @@ module.exports = {
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:type-graphql/recommended',
],
// allow explicitly defined dangling promises
rules: {
// allow explicitly defined dangling promises
'@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],
'no-void': ['error', { allowAsStatement: true }],
// ignore prefer-regexp-exec rule to allow string.match(regex)
'@typescript-eslint/prefer-regexp-exec': 'off',
},
parserOptions: {
tsconfigRootDir: __dirname,