Skip to content

Commit

Permalink
fix: switch off node: specific modules (per forwardemail/test-preview…
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Feb 10, 2023
1 parent 2acb1c3 commit 11c5c6e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .xo-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
extends: ['xo-lass'],
ignore: ['config.js'],
rules: {
'unicorn/prefer-top-level-await': 'warn'
'unicorn/prefer-top-level-await': 'warn',
'unicorn/prefer-node-protocol': 'warn'
}
};
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const process = require('node:process');
const fs = require('node:fs');
const path = require('node:path');
const util = require('node:util');
const process = require('process');
const fs = require('fs');
const path = require('path');
const util = require('util');

const I18N = require('@ladjs/i18n');
const _ = require('lodash');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"juice": "^8.1.0",
"lodash": "^4.17.21",
"nodemailer": "^6.9.1",
"preview-email": "^3.0.8"
"preview-email": "^3.0.9"
},
"devDependencies": {
"@commitlint/cli": "^17.4.2",
Expand Down
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('node:path');
const fs = require('node:fs');
const path = require('path');
const fs = require('fs');
const test = require('ava');
const nodemailer = require('nodemailer');
const cheerio = require('cheerio');
Expand Down

0 comments on commit 11c5c6e

Please sign in to comment.