From f6a43cd47c6f128e3bfe6c95600312b888f096cc Mon Sep 17 00:00:00 2001 From: David Anson Date: Mon, 28 Nov 2022 03:53:33 +0000 Subject: [PATCH] Address new linting issues flagged by previous commit. --- markdownlint.js | 10 +++++----- package.json | 3 ++- test/test.js | 8 ++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/markdownlint.js b/markdownlint.js index 7fe87e3b0..8de7a0b5a 100755 --- a/markdownlint.js +++ b/markdownlint.js @@ -2,11 +2,11 @@ 'use strict'; -const fs = require('fs'); -const path = require('path'); -const Module = require('module'); -const os = require('os'); -const process = require('process'); +const fs = require('node:fs'); +const path = require('node:path'); +const Module = require('node:module'); +const os = require('node:os'); +const process = require('node:process'); const program = require('commander'); const options = program.opts(); diff --git a/package.json b/package.json index 50fb6ee58..af76b514f 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "promise/prefer-await-to-then": 0, "object-shorthand": 0, "unicorn/prefer-module": 0, - "unicorn/prefer-ternary": 0 + "unicorn/prefer-ternary": 0, + "unicorn/prefer-top-level-await": 0 } }, "prettier": { diff --git a/test/test.js b/test/test.js index a31996d13..76f910bde 100644 --- a/test/test.js +++ b/test/test.js @@ -1,9 +1,9 @@ 'use strict'; -const fs = require('fs'); -const path = require('path'); -const os = require('os'); -const process = require('process'); +const fs = require('node:fs'); +const path = require('node:path'); +const os = require('node:os'); +const process = require('node:process'); const test = require('ava'); const execa = (...args) => import('execa').then(module => module.execa(...args));