diff --git a/package-lock.json b/package-lock.json index 4c58af8..6c5f8f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,8 @@ "chai-http": "^4.3.0", "concurrently": "^6.3.0", "mocha": "^9.2.2", - "nodemon": "^2.0.13" + "nodemon": "^2.0.13", + "prettier": "^2.6.2" }, "engines": { "node": "14.16.1", @@ -2382,6 +2383,21 @@ "node": ">=4" } }, + "node_modules/prettier": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz", + "integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -5000,6 +5016,12 @@ "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", "dev": true }, + "prettier": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz", + "integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==", + "dev": true + }, "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", diff --git a/package.json b/package.json index 9905432..51fbaee 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "scripts": { "test": "mocha ***/*.test.js --timeout 50000", "test-watch": "nodemon --exec \"npm test\"", + "prettier": "prettier --write **/*.js", "start": "node backend/server", "server": "nodemon backend/server", "client": "npm start --prefix frontend", @@ -45,6 +46,7 @@ "chai-http": "^4.3.0", "concurrently": "^6.3.0", "mocha": "^9.2.2", - "nodemon": "^2.0.13" + "nodemon": "^2.0.13", + "prettier": "^2.6.2" } }