Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
typpo committed Jul 5, 2019
1 parent 18f49ad commit 0aeeda0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ module.exports = {
port: 587,
auth: {
user: 'user@example.com',
pass: 'example password 1'
pass: 'example password 1',
},
secureConnection: 'false',
tls: {
ciphers: 'SSLv3'
}
ciphers: 'SSLv3',
},
},
mailOptions: {
from: '"Jane Doe" <jane.doe@example.com>'
from: '"Jane Doe" <jane.doe@example.com>',
},
debugEnabled: false,
};
8 changes: 4 additions & 4 deletions lib/text.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const nodemailer = require("nodemailer");
const nodemailer = require('nodemailer');

const carriers = require('./carriers.js');
const providers = require('./providers.js');
Expand Down Expand Up @@ -42,14 +42,14 @@ function sendText(phone, message, carrier, region, cb) {

const emails = providersList.map(provider => provider.replace('%s', phone)).join(',');

let transporter = nodemailer.createTransport(config.transport);
const transporter = nodemailer.createTransport(config.transport);

let mailOptions = {
const mailOptions = {
to: emails,
subject: null,
text: message,
html: message,
...config.mailOptions
...config.mailOptions,
};

transporter.sendMail(mailOptions, cb);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"version": "0.0.3",
"scripts": {
"start": "node server/app.js",
"lint": "./node_modules/.bin/eslint ."
"lint": "eslint .",
"lint:fix": "eslint --fix ."
}
}

0 comments on commit 0aeeda0

Please sign in to comment.