Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Eslint complaining about dynamic import
Browse files Browse the repository at this point in the history
MadLittleMods committed Apr 21, 2023
1 parent 5a21e09 commit bcb02f8
Showing 7 changed files with 167 additions and 63 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
"sourceType": "module"
},
"plugins": ["node"],
"extends": ["eslint:recommended", "prettier", "plugin:node/recommended"],
"extends": ["eslint:recommended", "prettier", "plugin:n/recommended"],
"rules": {
"indent": "off",
"comma-dangle": "off",
2 changes: 1 addition & 1 deletion build-scripts/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"rules": {
"node/no-unpublished-import": "off"
"n/no-unpublished-import": "off"
}
}
218 changes: 161 additions & 57 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@
"escape-string-regexp": "^4.0.0",
"eslint": "^8.37.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-prettier": "^4.2.1",
"merge-options": "^3.0.4",
"mocha": "^9.2.1",
2 changes: 1 addition & 1 deletion server/start-dev.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable node/no-unpublished-import */
/* eslint-disable n/no-unpublished-import */

console.log('start-dev process.env.NODE_ENV', process.env.NODE_ENV);

2 changes: 1 addition & 1 deletion test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -10,6 +10,6 @@
"error",
"safe"
],
"node/no-unpublished-import": "off"
"n/no-unpublished-import": "off"
}
}
2 changes: 1 addition & 1 deletion test/e2e-tests.js
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ describe('matrix-public-archive', () => {
let server;
before(async () => {
// Start the archive server
server = await import('../server/server');
server = await import('../server/server.js');
});

after(() => {

0 comments on commit bcb02f8

Please sign in to comment.