Skip to content

Commit

Permalink
fix: account for node 12
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Feb 19, 2021
1 parent 2dbfb8e commit 4cdb325
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ module.exports = {
'no-await-in-loop': 'warn',
'import/no-unresolved': [
'error',
{ commonjs: true, ignore: ['fs/promises', 'dns/promises'] }
{
commonjs: true
// ? Once Node 12 dies, these can be used safely
/*ignore: ['fs/promises', 'dns/promises']*/
}
],
'no-extra-boolean-cast': 'off',
'no-empty': 'off',
Expand Down
3 changes: 2 additions & 1 deletion test/setup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { name as pkgName, version as pkgVersion } from '../package.json';
import { writeFile } from 'fs/promises';
import { tmpdir } from 'os';
import { promises as fs } from 'fs';
import 'jest-extended';
import execa from 'execa';
import uniqueFilename from 'unique-filename';
Expand All @@ -10,6 +10,7 @@ import type { ExecaReturnValue } from 'execa';
import type { AnyFunction, AnyVoid } from '@ergodark/types';
import { resolve } from 'path';

const { writeFile } = fs;
const debug = debugFactory(`${pkgName}:jest-setup`);

debug(`pkgName: "${pkgName}"`);
Expand Down

0 comments on commit 4cdb325

Please sign in to comment.