Fix eslint rules for typescript
This commit is contained in:
parent
3ec15e30b3
commit
cf975330f4
@ -21,6 +21,10 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
"arrow-parens": ["error", "always"],
|
"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"]
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -159,7 +159,7 @@ class App extends Component {
|
|||||||
const {conlang} = this.state;
|
const {conlang} = this.state;
|
||||||
if (conlang === Conlang.Saimiar) {
|
if (conlang === Conlang.Saimiar) {
|
||||||
this.searchSaimiar(searchTerm);
|
this.searchSaimiar(searchTerm);
|
||||||
} else if (conlang == Conlang.Juteyuji) {
|
} else if (conlang === Conlang.Juteyuji) {
|
||||||
this.searchJuteyuji(searchTerm);
|
this.searchJuteyuji(searchTerm);
|
||||||
} else {
|
} else {
|
||||||
console.error(`Conlang ${conlang} not supported`);
|
console.error(`Conlang ${conlang} not supported`);
|
||||||
|
Loading…
Reference in New Issue
Block a user