Fix some linting errors

This commit is contained in:
Peter deHaan 2017-07-31 15:25:29 -07:00
parent 5effeb16d1
commit 318964251d
No known key found for this signature in database
GPG Key ID: F0FC6C01C6305097
2 changed files with 7 additions and 2 deletions

3
scripts/.eslintrc.yml Normal file
View File

@ -0,0 +1,3 @@
rules:
no-console: off
no-process-exit: off

View File

@ -1,3 +1,5 @@
/* eslint-disable no-console */
const { exec } = require('child_process');
const fs = require('fs');
@ -25,10 +27,10 @@ exec(compareLocales, (err, stdout, stderr) => {
.sort();
if (locales.join(',') !== availableLanguages.join(',')) {
const missingLocales = missingLocales(locales, availableLanguages);
const missing = missingLocales(locales, availableLanguages);
console.log('current 100%:', JSON.stringify(locales));
console.log('package.json:', JSON.stringify(availableLanguages));
console.log('missing prod:', JSON.stringify(missingLocales));
console.log('missing prod:', JSON.stringify(missing));
if (process.argv.includes('--write')) {
const pkgPath = require.resolve('../package.json');