diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-06-06 10:56:36 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-06 03:56:36 +0200 |
commit | 7a7bfa5170605710fb2506ad714b134c9e45206f (patch) | |
tree | 4e15099f433ed0bbf9b921328bf50854ee2a441a /config/webpack | |
parent | e969c7864529900ebb106769883000cbe8752ec9 (diff) |
Add quotes ESLint rules (#3602)
* Add quotes ESLint rule * Add jsx-quotes ESlint rule * Sort ESLint rules
Diffstat (limited to 'config/webpack')
-rw-r--r-- | config/webpack/development.server.js | 2 | ||||
-rw-r--r-- | config/webpack/generateLocalePacks.js | 2 | ||||
-rw-r--r-- | config/webpack/translationRunner.js | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/config/webpack/development.server.js b/config/webpack/development.server.js index 4e11df4cb..8e8a399e8 100644 --- a/config/webpack/development.server.js +++ b/config/webpack/development.server.js @@ -10,7 +10,7 @@ module.exports = merge(devConfig, { devServer: { host: env.LOCAL_DOMAIN ? '0.0.0.0' : devServer.host, port: devServer.port, - headers: { "Access-Control-Allow-Origin": "*" }, + headers: { 'Access-Control-Allow-Origin': '*' }, compress: true, historyApiFallback: true, contentBase: resolve(paths.output, paths.entry), diff --git a/config/webpack/generateLocalePacks.js b/config/webpack/generateLocalePacks.js index 10a66e994..b71cf2ade 100644 --- a/config/webpack/generateLocalePacks.js +++ b/config/webpack/generateLocalePacks.js @@ -30,7 +30,7 @@ locales.forEach(locale => { // then check locales/locale-data `../../app/javascript/mastodon/locales/locale-data/${baseLocale}.js`, // fall back to English (this is what react-intl does anyway) - `../../node_modules/react-intl/locale-data/en.js`, + '../../node_modules/react-intl/locale-data/en.js', ].filter(filename => fs.existsSync(path.join(outPath, filename))) .map(filename => filename.replace(/..\/..\/node_modules\//, ''))[0]; diff --git a/config/webpack/translationRunner.js b/config/webpack/translationRunner.js index a54612549..8145c605f 100644 --- a/config/webpack/translationRunner.js +++ b/config/webpack/translationRunner.js @@ -34,11 +34,11 @@ const validateLanguages = function (languages, validators) { }, []); if (invalidLanguages.length > 0) { - console.log(`\nError: Specified invalid LANGUAGES:`); + console.log('\nError: Specified invalid LANGUAGES:'); for (let { language, error } of invalidLanguages) { console.error(`* ${language}: ${error}`); } - console.log(`\nUse yarn "manage:translations -- --help" for usage information\n`); + console.log('\nUse yarn "manage:translations -- --help" for usage information\n'); process.exit(1); } }; @@ -95,7 +95,7 @@ if (argv.help) { // check if message directory exists if (!fs.existsSync(`${process.cwd()}/${messagesDirectory}`)) { console.error(`\nError: messageDirectory not exists\n(${process.cwd()}/${messagesDirectory})\n`); - console.error(`Try to run "yarn build:development" first`); + console.error('Try to run "yarn build:development" first'); process.exit(1); } |