From 6837616dd2b86f2aa94d0139d4c9d352606eabea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?100=E3=81=AE=E4=BA=BA?= <100@pokemori.jp> Date: Sat, 30 Jul 2022 15:30:00 +0900 Subject: [PATCH] =?UTF-8?q?[ESLint]=20=E3=82=A8=E3=83=A9=E3=83=BC=E3=83=BB?= =?UTF-8?q?=E8=AD=A6=E5=91=8A=E3=82=92=E4=BF=AE=E6=AD=A3=E3=83=BB=E5=9B=9E?= =?UTF-8?q?=E9=81=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...210\343\202\222\350\265\267\345\213\225.js.cmd" | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git "a/\343\203\220\343\203\274\343\203\201\343\203\243\343\203\253\343\202\255\343\203\243\343\202\271\343\203\210\343\202\222\350\265\267\345\213\225.js.cmd" "b/\343\203\220\343\203\274\343\203\201\343\203\243\343\203\253\343\202\255\343\203\243\343\202\271\343\203\210\343\202\222\350\265\267\345\213\225.js.cmd" index 79324ae..a487a11 100644 --- "a/\343\203\220\343\203\274\343\203\201\343\203\243\343\203\253\343\202\255\343\203\243\343\202\271\343\203\210\343\202\222\350\265\267\345\213\225.js.cmd" +++ "b/\343\203\220\343\203\274\343\203\201\343\203\243\343\203\253\343\202\255\343\203\243\343\202\271\343\203\210\343\202\222\350\265\267\345\213\225.js.cmd" @@ -27,7 +27,8 @@ var EXE_URL = 'steam://rungameid/947890'; var CONFIG_FOLDER_PATH = Shell.ExpandEnvironmentStrings('%USERPROFILE%\\Documents\\My Games\\VirtualCast'); /** - * [UTF-8 復号する | Encoding Standard ― 符号化法 標準(日本語訳)]{@link https://triple-underscore.github.io/Encoding-ja.html#utf-8-decode} + * [UTF-8 復号する | Encoding Standard ― 符号化法 標準(日本語訳)] + * {@link https://triple-underscore.github.io/Encoding-ja.html#utf-8-decode} * @constant {number} */ var UTF8_BOM_BYTES_LENGTH = 3; @@ -70,7 +71,8 @@ function getFileContents(path) * 指定したファイルへ文字列を書き込みます。 * * ファイルが既に存在する場合は上書きします。 - * @see [ADODB.Stream で BOM なし UTF-8 のテキストファイルを書き出す ― Corredor]{@link http://neos21.hatenablog.com/entry/2016/03/27/231512} + * @see [ADODB.Stream で BOM なし UTF-8 のテキストファイルを書き出す ― Corredor] + * {@link http://neos21.hatenablog.com/entry/2016/03/27/231512} * @param {string} path * @param {string} contents * @returns {void} @@ -172,8 +174,8 @@ if (Object.keys(profileNameFilesPairs).length === 0) { return; } -for (var profileName in profileNameFilesPairs) { - var files = profileNameFilesPairs[profileName]; +for (var profileName in profileNameFilesPairs) { //eslint-disable-line no-redeclare + var files = profileNameFilesPairs[profileName]; //eslint-disable-line no-redeclare if (files.input) { // config.yaml → config.json var outputFileName = profileName + '_config.json'; @@ -241,7 +243,9 @@ for (var profileName in profileNameFilesPairs) { return; } - putFileContents(folder.Path + '\\' + profileName + '_config.json', JSON.stringify(config, null, '\t').replace(/\n/g, '\r\n')); + putFileContents( + folder.Path + '\\' + profileName + '_config.json', JSON.stringify(config, null, '\t').replace(/\n/g, '\r\n') + ); } else { // config.json → config.yaml if (folder.Attributes & ReadOnly) {