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 43db185 commit 6973247
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const regexpEscape = require('regexp.escape');
const sinon = require('sinon');
const stream = require('node:stream');

// https://github.com/import-js/eslint-plugin-import/issues/2844
// eslint-disable-next-line import/extensions
let swaggerSpecValidator = require('..');
const packageJson = require('../package.json');

Expand Down
2 changes: 2 additions & 0 deletions test/swagger-spec-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const stream = require('node:stream');
const url = require('node:url');

const packageJson = require('../package.json');
// https://github.com/import-js/eslint-plugin-import/issues/2844
// eslint-disable-next-line import/extensions
const swaggerSpecValidator = require('..');

const defaultUrl = new URL(swaggerSpecValidator.DEFAULT_URL);
Expand Down

0 comments on commit 6973247

Please sign in to comment.