From 501c5d36dca57f55dbbe9e1857fbb2f7fe3a4d13 Mon Sep 17 00:00:00 2001 From: Kevin Locke Date: Tue, 5 Sep 2023 08:37:11 -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/git-branch-is.js | 2 ++ test/git-branch-is.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bin/git-branch-is.js b/bin/git-branch-is.js index c42f534..86603f0 100755 --- a/bin/git-branch-is.js +++ b/bin/git-branch-is.js @@ -8,6 +8,8 @@ const { Command } = require('commander'); +// https://github.com/import-js/eslint-plugin-import/issues/2844 +// eslint-disable-next-line import/extensions const gitBranchIs = require('..'); const packageJson = require('../package.json'); diff --git a/test/git-branch-is.js b/test/git-branch-is.js index b57e472..e2d6c6d 100644 --- a/test/git-branch-is.js +++ b/test/git-branch-is.js @@ -8,6 +8,8 @@ const assert = require('assert'); const path = require('path'); +// https://github.com/import-js/eslint-plugin-import/issues/2844 +// eslint-disable-next-line import/extensions const gitBranchIs = require('..'); const assertMatch = require('../test-lib/assert-match.js');