Fix eslint rules for typescript

This commit is contained in:
Greg Shuflin 2021-09-12 21:21:55 -07:00
parent 3ec15e30b3
commit cf975330f4
2 changed files with 6 additions and 2 deletions

View File

@ -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"]
},
};

View File

@ -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`);