Skip to content

Commit

Permalink
Disable import/extensions for require('..')
Browse files Browse the repository at this point in the history
To work around
import-js/eslint-plugin-import#2844

Signed-off-by: Kevin Locke <[email protected]>
  • Loading branch information
kevinoid committed Sep 5, 2023
1 parent 3d7f2fe commit 501c5d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/git-branch-is.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
2 changes: 2 additions & 0 deletions test/git-branch-is.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 501c5d3

Please sign in to comment.