Skip to content

Commit e53a6da

Browse files
committed
lint fix
1 parent 2696d14 commit e53a6da

File tree

5 files changed

+12
-21
lines changed

5 files changed

+12
-21
lines changed

.vscode/settings.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2-
"editor.defaultFormatter": "biomejs.biome",
3-
"editor.formatOnSave": true
2+
"editor.formatOnSave": true,
3+
"[javascript]": {
4+
"editor.defaultFormatter": "biomejs.biome"
5+
}
46
}

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const express = require("express");
33
const mw = require("./middleware");
44
const routes = require("./routes");
55

6-
module.exports = function router(options) {
6+
module.exports = function (options) {
77
const router = express.Router();
88

99
const defaults = [

lib/routes/delay.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = function delay(req, res, next) {
1+
module.exports = function (req, res, next) {
22
let delay = req.params.ms ? Number.parseInt(req.params.ms, 10) : 200;
33

44
if (delay > 60000) {

package.json

+2-13
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,10 @@
2525
"engines": {
2626
"node": ">=22"
2727
},
28-
"files": [
29-
"bin",
30-
"docs",
31-
"src",
32-
"lib",
33-
"server.js"
34-
],
28+
"files": ["bin", "docs", "src", "lib", "server.js"],
3529
"bugs": {
3630
"url": "https://github.com/Kong/mockbin/issues"
3731
},
38-
"config": {
39-
"commitizen": {
40-
"path": "./node_modules/cz-conventional-changelog"
41-
}
42-
},
4332
"scripts": {
4433
"start": "node server.js",
4534
"dev": "npx nodemon -e pug,js,json server.js",
@@ -73,4 +62,4 @@
7362
"xmlbuilder": "^15.0.0",
7463
"yamljs": "^0.3.0"
7564
}
76-
}
65+
}

test/http/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ app.use("/", mockbin());
1515
require("should");
1616

1717
describe("HTTP", () => {
18-
before(()=>{
18+
before(() => {
1919
server = app.listen(3000);
20-
})
20+
});
2121
after(() => {
22-
server.close();
23-
});
22+
server.close();
23+
});
2424
it("home page responds with html content", async () => {
2525
const res = await fetch("http://localhost:3000/", {
2626
headers: {

0 commit comments

Comments
 (0)