From de86f5ec468e364bbc0535924d0c9601d6ab6b70 Mon Sep 17 00:00:00 2001 From: Kevin Locke Date: Sun, 3 Sep 2023 15:02:16 -0600 Subject: [PATCH] Disable import/extensions for require('..') To work around https://github.com/import-js/eslint-plugin-import/issues/2844 Signed-off-by: Kevin Locke --- bin/cmd.js | 2 ++ test/index.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bin/cmd.js b/bin/cmd.js index 8f3dabb..d7dd126 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -11,6 +11,8 @@ const yargs = require('yargs/yargs'); +// https://github.com/import-js/eslint-plugin-import/issues/2844 +// eslint-disable-next-line import/extensions const modulename = require('..'); const packageJson = require('../package.json'); diff --git a/test/index.js b/test/index.js index 7568f4d..0e1c7c7 100644 --- a/test/index.js +++ b/test/index.js @@ -5,6 +5,8 @@ 'use strict'; +// https://github.com/import-js/eslint-plugin-import/issues/2844 +// eslint-disable-next-line import/extensions const modulename = require('..'); describe('modulename', () => {