diff --git a/.vscode/settings.json b/.vscode/settings.json index 1a477ca..e32c903 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,7 @@ { - "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "quickfix.biome": "explicit" + }, "[javascript]": { "editor.defaultFormatter": "biomejs.biome" }, diff --git a/biome.json b/biome.json index 8973bdc..c91f1a4 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.4.1/schema.json", + "$schema": "https://biomejs.dev/schemas/1.7.3/schema.json", "organizeImports": { "enabled": true }, diff --git a/lib/routes/bins/create.js b/lib/routes/bins/create.js index 44492aa..72e0a0c 100644 --- a/lib/routes/bins/create.js +++ b/lib/routes/bins/create.js @@ -41,7 +41,9 @@ module.exports = (client) => (req, res, next) => { mock.content.size = 0; // express is sensitive to mismatched content-length header - mock.headers = mock.headers.filter((header) => header.name.toLowerCase() !== "content-length"); + mock.headers = mock.headers.filter( + (header) => header.name.toLowerCase() !== "content-length", + ); validate .response(mock) diff --git a/lib/routes/bins/update.js b/lib/routes/bins/update.js index 43cf198..4c42827 100644 --- a/lib/routes/bins/update.js +++ b/lib/routes/bins/update.js @@ -38,7 +38,9 @@ module.exports = (client) => (req, res, next) => { mock.content.size = 0; // express is sensitive to mismatched content-length header - mock.headers = mock.headers.filter((header) => header.name.toLowerCase() !== "content-length"); + mock.headers = mock.headers.filter( + (header) => header.name.toLowerCase() !== "content-length", + ); validate .response(mock)