Skip to content

Commit 84a7e87

Browse files
authored
Build: Update dev dependencies for linting
Closes #1550.
1 parent 81c4197 commit 84a7e87

File tree

4 files changed

+112
-67
lines changed

4 files changed

+112
-67
lines changed

package-lock.json

Lines changed: 104 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
"@babel/plugin-external-helpers": "^7.10.4",
5252
"@babel/preset-env": "^7.11.0",
5353
"coveralls": "^3.1.0",
54-
"eslint-config-jquery": "^1.0.1",
55-
"eslint-plugin-html": "^6.0.3",
56-
"eslint-plugin-node": "^8.0.1",
57-
"eslint-plugin-qunit": "^3.2.0",
54+
"eslint-config-jquery": "^3.0.0",
55+
"eslint-plugin-html": "^6.1.1",
56+
"eslint-plugin-node": "^11.1.0",
57+
"eslint-plugin-qunit": "^5.3.0",
5858
"execa": "^0.8.0",
5959
"fixturify": "^0.3.4",
6060
"fuzzysort": "^1.1.4",

src/cli/require-qunit.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = function requireQUnit( resolve = require.resolve ) {
44
try {
55

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

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

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

2527
// Finally, we use the local development version of QUnit
28+
// eslint-disable-next-line node/no-unpublished-require, node/no-missing-require
2629
delete require.cache[ resolve( "../../dist/qunit" ) ];
2730
// eslint-disable-next-line node/no-missing-require, node/no-unpublished-require
2831
return require( "../../dist/qunit" );

src/cli/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async function run( args, options ) {
7979
require( filePath );
8080
} catch ( e ) {
8181
if ( e.code === "ERR_REQUIRE_ESM" && ( !nodeVint || nodeVint >= 72 ) ) {
82-
await import( filePath );
82+
await import( filePath ); // eslint-disable-line node/no-unsupported-features/es-syntax
8383
} else {
8484
throw e;
8585
}

0 commit comments

Comments
 (0)