eslint: enable extra rules

no-implicit-coercion, no-extra-boolean-cast, no-invalid-this, logical-assignment-operators, no-unmodified-loop-condition
This commit is contained in:
undefined committed 2023-01-06 00:28:35 +08:00
1 parent 5ac9d930b2
commit 7f51df236a
34 files changed
+100 -96

No files matched your search

+6 -6
View File
@@ -34,13 +34,13 @@ export function parseLang(config: string): Record<string, LangConfig> {
}
for (const key in file) {
const entry = file[key];
entry.highlight = entry.highlight || key;
entry.monaco = entry.monaco || entry.highlight;
entry.time_limit_rate = entry.time_limit_rate || 1;
entry.code_file = entry.code_file || `foo.${key}`;
entry.execute = entry.execute || '/w/foo';
entry.highlight ||= key;
entry.monaco ||= entry.highlight;
entry.time_limit_rate ||= 1;
entry.code_file ||= `foo.${key}`;
entry.execute ||= '/w/foo';
entry.key = key;
entry.hidden = entry.hidden || false;
entry.hidden ||= false;
}
return file;
}