Skip to content

Commit

Permalink
Build: Update dev dependencies for linting
Browse files Browse the repository at this point in the history
Closes #1550.
  • Loading branch information
bmish committed Jan 31, 2021
1 parent 81c4197 commit 84a7e87
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 67 deletions.
166 changes: 104 additions & 62 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
"@babel/plugin-external-helpers": "^7.10.4",
"@babel/preset-env": "^7.11.0",
"coveralls": "^3.1.0",
"eslint-config-jquery": "^1.0.1",
"eslint-plugin-html": "^6.0.3",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-qunit": "^3.2.0",
"eslint-config-jquery": "^3.0.0",
"eslint-plugin-html": "^6.1.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-qunit": "^5.3.0",
"execa": "^0.8.0",
"fixturify": "^0.3.4",
"fuzzysort": "^1.1.4",
Expand Down
3 changes: 3 additions & 0 deletions src/cli/require-qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = function requireQUnit( resolve = require.resolve ) {
try {

// First we attempt to find QUnit relative to the current working directory.
// eslint-disable-next-line node/no-missing-require
const localQUnitPath = resolve( "qunit", {

// Support: Node 10. Explicitly check "node_modules" to avoid a bug.
Expand All @@ -16,13 +17,15 @@ module.exports = function requireQUnit( resolve = require.resolve ) {
try {

// Second, we use the globally installed QUnit
// eslint-disable-next-line node/no-unpublished-require, node/no-missing-require
delete require.cache[ resolve( "../../qunit/qunit" ) ];
// eslint-disable-next-line node/no-missing-require, node/no-unpublished-require
return require( "../../qunit/qunit" );
} catch ( e ) {
if ( e.code === "MODULE_NOT_FOUND" ) {

// Finally, we use the local development version of QUnit
// eslint-disable-next-line node/no-unpublished-require, node/no-missing-require
delete require.cache[ resolve( "../../dist/qunit" ) ];
// eslint-disable-next-line node/no-missing-require, node/no-unpublished-require
return require( "../../dist/qunit" );
Expand Down
2 changes: 1 addition & 1 deletion src/cli/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async function run( args, options ) {
require( filePath );
} catch ( e ) {
if ( e.code === "ERR_REQUIRE_ESM" && ( !nodeVint || nodeVint >= 72 ) ) {
await import( filePath );
await import( filePath ); // eslint-disable-line node/no-unsupported-features/es-syntax
} else {
throw e;
}
Expand Down

0 comments on commit 84a7e87

Please sign in to comment.