From e04f328d9baf1c9c95f38f7bacf6eee3fbf1d20c Mon Sep 17 00:00:00 2001 From: Ahmad Izzudin Alifyandra Date: Mon, 13 Sep 2021 23:19:18 +0700 Subject: [PATCH] Lower eslint strictness for namespaces and empty interfaces --- .eslintrc.js | 4 +++- src/types/navigation/index.tsx | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 829f33a..0f8da1d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -34,7 +34,9 @@ module.exports = { "react/no-unescaped-entities": 0, "@typescript-eslint/no-floating-promises": 0, "@typescript-eslint/no-unsafe-assignment": 1, - "prettier/prettier": "error" + "@typescript-eslint/no-empty-interface": 0, + "@typescript-eslint/no-namespace": 1, + "prettier/prettier": "error", }, settings: { react: { diff --git a/src/types/navigation/index.tsx b/src/types/navigation/index.tsx index 700cea2..f171b62 100644 --- a/src/types/navigation/index.tsx +++ b/src/types/navigation/index.tsx @@ -1,9 +1,8 @@ -/* eslint-disable @typescript-eslint/no-namespace */ import { RootStackParamList } from "./RootStack"; declare global { namespace ReactNavigation { - type RootParamList = RootStackParamList; + interface RootParamList extends RootStackParamList {} } } -- GitLab