diff --git a/.eslintrc.js b/.eslintrc.js index a94937b17955f7ee75ac1517132030ad0b3e3102..95517d09e2761751cd9af03e294969ca73262623 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -41,8 +41,16 @@ module.exports = { ], 'import/prefer-default-export': 0, // no benefit + /* + * This rule is not needed since the project uses typescript and the rule + * `@typescript-eslint/explicit-function-return-type`. + * + * Any non-exhaustive definition of the function will therefore result in a + * typescript TS2366 error. + */ + 'consistent-return': 0, + // other rules - 'consistent-return': 'error', eqeqeq: 'error', 'no-console': 'error', 'no-negated-condition': 'error',