ui: update eslint rules

This commit is contained in:
undefined committed 2022-09-03 14:28:18 +08:00
1 parent 0e07c64cad
commit 5e8d2b1286
30 files changed
+73 -72

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
/* eslint-disable camelcase */
import en_GB from 'monaco-editor-nls/locale/en-gb.json';
function _format(message, args) {
function format(message, args) {
let result;
if (args.length === 0) {
result = message;
@@ -33,7 +33,7 @@ function find(path, message) {
}
export function localize(path, message, ...args) {
return _format(find(path.key || path, message), args);
return format(find(path.key || path, message), args);
}
export function setLocaleData(data) {