Merge pull request #176 from mozilla/issue-175-eslint-consistent r=vladikoff
chore(eslint): make eslint rules consistent
This commit is contained in:
Коммит
927450038c
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"rules": {
|
||||
"handle-callback-err": 0,
|
||||
"no-console": 0
|
||||
}
|
||||
}
|
|
@ -22,14 +22,14 @@ var util = require('util')
|
|||
|
||||
var args = '{"hash":"%H","subject":"%s","committer date":"%ct"}'
|
||||
var cmd = util.format('git --no-pager log --format=format:\'%s\' -1', args)
|
||||
cp.exec(cmd, function (err, stdout) { // eslint-disable-line handle-callback-err
|
||||
cp.exec(cmd, function (err, stdout) {
|
||||
var info = {
|
||||
version: JSON.parse(stdout || '{}')
|
||||
}
|
||||
|
||||
var cmd = 'git config --get remote.origin.url'
|
||||
cp.exec(cmd, function (err, stdout) { // eslint-disable-line handle-callback-err
|
||||
cp.exec(cmd, function (err, stdout) {
|
||||
info.version.source = (stdout && stdout.trim()) || ''
|
||||
console.log(JSON.stringify(info, null, 2)) // eslint-disable-line no-console
|
||||
console.log(JSON.stringify(info, null, 2))
|
||||
})
|
||||
})
|
||||
|
|
|
@ -63,7 +63,7 @@ createMailer(log, config.getProperties(), mailSender)
|
|||
return sendMails(mailer, getMessageTypesToWrite(mailer, messageToSend))
|
||||
})
|
||||
.then(() => {
|
||||
console.info('done') //eslint-disable-line no-console
|
||||
console.info('done')
|
||||
})
|
||||
|
||||
function getEmailOutputPath(subject, extension) {
|
||||
|
@ -106,7 +106,7 @@ function checkMessageType(mailer, messageToSend) {
|
|||
messageTypes.push('all')
|
||||
|
||||
if (messageTypes.indexOf(messageToSend) === -1) {
|
||||
console.error('invalid message name: `' + messageToSend + '`\n' + //eslint-disable-line no-console
|
||||
console.error('invalid message name: `' + messageToSend + '`\n' +
|
||||
'choose from: ' + messageTypes.join(', '))
|
||||
process.exit(1)
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче