diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 861b5f638..9443778e6 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -111,6 +111,7 @@ module.exports = { 'brace-style': ['error', '1tbs', { allowSingleLine: false }], 'nonblock-statement-body-position': ['error', 'below'], '@stylistic/jsx-closing-bracket-location': ['error', 'line-aligned'], + 'no-unreachable': 'error', }, globals: { describe: 'readonly', diff --git a/src/Day.tsx b/src/Day.tsx index e67ef212f..56f6d75fb 100644 --- a/src/Day.tsx +++ b/src/Day.tsx @@ -57,8 +57,6 @@ export function Day ({ if (currentMessage == null || isSameDay(currentMessage, previousMessage)) return null - return null - return ( diff --git a/tsconfig.json b/tsconfig.json index 7a9b02caa..4bb0a6cb6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,6 +12,8 @@ "experimentalDecorators": true, "preserveConstEnums": true, "sourceMap": true, + "allowJs": true, + "checkJs": true, "strictNullChecks": true, "skipDefaultLibCheck": true, "skipLibCheck": true,