From cf975330f48350f8cda5aec4c270f9e3198c5e3c Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Sun, 12 Sep 2021 21:21:55 -0700 Subject: [PATCH] Fix eslint rules for typescript --- .eslintrc.js | 6 +++++- src/App.tsx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index aeb0276..20a287b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -21,6 +21,10 @@ module.exports = { ], rules: { "arrow-parens": ["error", "always"], - "indent": ["error", 4] + "indent": ["error", 4], + "unused-vars": "off", + "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], + "no-redeclare": "off", + "@typescript-eslint/no-redeclare": ["error"] }, }; diff --git a/src/App.tsx b/src/App.tsx index 0329305..2690501 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -159,7 +159,7 @@ class App extends Component { const {conlang} = this.state; if (conlang === Conlang.Saimiar) { this.searchSaimiar(searchTerm); - } else if (conlang == Conlang.Juteyuji) { + } else if (conlang === Conlang.Juteyuji) { this.searchJuteyuji(searchTerm); } else { console.error(`Conlang ${conlang} not supported`);