eslint all the things

This commit is contained in:
2017-09-10 13:47:29 +02:00
parent 7e1611ff7a
commit 79664f56a6
21 changed files with 2367 additions and 1220 deletions
+2 -3
View File
@@ -8,7 +8,6 @@ $selected = [
'wifi.connected_ip_is',
'wifi.not_conn',
'wifi.enter_passwd',
'wifi.passwd_saved',
];
$out = [];
@@ -18,6 +17,6 @@ foreach ($selected as $key) {
file_put_contents(__DIR__. '/jssrc/lang.js',
"// Generated from PHP locale file\n" .
'var _tr = ' . json_encode($out, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE) . ";\n\n" .
"function tr(key) { return _tr[key] || '?'+key+'?'; }\n"
'let _tr = ' . json_encode($out, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE) . ";\n\n" .
"function tr (key) { return _tr[key] || '?' + key + '?' }\n"
);