From 0b33abdf86888b78b9f5f70e2689f1a4d3e42406 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Wed, 19 Sep 2018 19:21:34 +0200 Subject: [PATCH] chore: upgrade prettier Closes #345 --- lib/middleware/simple-authentication.js | 3 +- package.json | 6 ++-- yarn.lock | 42 ++++++++++++------------- 3 files changed, 25 insertions(+), 26 deletions(-) diff --git a/lib/middleware/simple-authentication.js b/lib/middleware/simple-authentication.js index 0276f28576..d4ead337c3 100644 --- a/lib/middleware/simple-authentication.js +++ b/lib/middleware/simple-authentication.js @@ -7,8 +7,7 @@ function unsecureAuthentication(app) { app.post('/api/admin/login', (req, res) => { const user = req.body; req.session.user = new User({ email: user.email }); - res - .status(200) + res.status(200) .json(req.session.user) .end(); }); diff --git a/package.json b/package.json index bf3b019a21..10e46baf18 100644 --- a/package.json +++ b/package.json @@ -92,13 +92,13 @@ "ava": "^0.25.0", "coveralls": "^3.0.1", "eslint": "^5.0.0", - "eslint-config-finn": "^3.0.0", - "eslint-config-finn-prettier": "^3.0.0", + "eslint-config-finn": "^3.0.1", + "eslint-config-finn-prettier": "^3.0.2", "husky": "^0.14.1", "lint-staged": "^7.1.0", "lolex": "^2.5.0", "nyc": "^12.0.1", - "prettier": "^1.12.1", + "prettier": "^1.14.3", "proxyquire": "^2.0.1", "superagent": "^3.8.3", "supertest": "^3.1.0", diff --git a/yarn.lock b/yarn.lock index b435439917..d75655ceed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1894,32 +1894,32 @@ escodegen@^1.9.0: optionalDependencies: source-map "~0.5.6" -eslint-config-finn-prettier@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/eslint-config-finn-prettier/-/eslint-config-finn-prettier-3.0.1.tgz#1198ed3dfd623f8bc896b9df544e4237a54232b7" +eslint-config-finn-prettier@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/eslint-config-finn-prettier/-/eslint-config-finn-prettier-3.0.2.tgz#4f21015d9a0d561feda55c2015935910a24f4808" dependencies: - eslint-config-prettier "^2.4.0" - eslint-plugin-prettier "^2.2.0" + eslint-config-prettier "^3.0.1" + eslint-plugin-prettier "^2.6.2" -eslint-config-finn@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/eslint-config-finn/-/eslint-config-finn-3.0.0.tgz#d6787c37c1ae5a668b205695290bbad3861898ba" +eslint-config-finn@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/eslint-config-finn/-/eslint-config-finn-3.0.1.tgz#edec7dce85ff0f385dc57171e4ce7b92cd3f3a94" dependencies: eslint-config-schibsted "^4.0.0" -eslint-config-prettier@^2.4.0: - version "2.7.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-2.7.0.tgz#7bbfef66ad783277836f4ea556e68b9bcc9da4d0" +eslint-config-prettier@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-3.0.1.tgz#479214f64c1a4b344040924bfb97543db334b7b1" dependencies: - get-stdin "^5.0.1" + get-stdin "^6.0.0" eslint-config-schibsted@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/eslint-config-schibsted/-/eslint-config-schibsted-4.0.0.tgz#7c0dacdc18d56a2dac006923917ef40df29438ed" -eslint-plugin-prettier@^2.2.0: - version "2.3.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.3.1.tgz#e7a746c67e716f335274b88295a9ead9f544e44d" +eslint-plugin-prettier@^2.6.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.2.tgz#71998c60aedfa2141f7bfcbf9d1c459bf98b4fad" dependencies: fast-diff "^1.1.1" jest-docblock "^21.0.0" @@ -2511,9 +2511,9 @@ get-stdin@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" -get-stdin@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-5.0.1.tgz#122e161591e21ff4c52530305693f20e6393a398" +get-stdin@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" get-stream@^3.0.0: version "3.0.0" @@ -4959,9 +4959,9 @@ preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" -prettier@^1.12.1: - version "1.12.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.12.1.tgz#c1ad20e803e7749faf905a409d2367e06bbe7325" +prettier@^1.14.3: + version "1.14.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.14.3.tgz#90238dd4c0684b7edce5f83b0fb7328e48bd0895" pretty-format@^22.4.0: version "22.4.0"