Skip to content

Commit 8ff5827

Browse files
committed
Update to prettier v2.3.0
1 parent 95a66ae commit 8ff5827

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

.eslintrc.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"root": true,
3-
"extends": ["standard"],
4-
"rules": {
5-
"space-before-function-paren": "off"
6-
}
3+
"extends": ["standard", "prettier"]
74
}

examples/todo.js

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { todo } from '../index.js'
22

3-
export default ({ log }) => async (check = true) => {
4-
log.debug({ check }, 'Input')
5-
const result = todo(check)
6-
if (!result) throw new Error('Check was not truthy.')
7-
return result
8-
}
3+
export default ({ log }) =>
4+
async (check = true) => {
5+
log.debug({ check }, 'Input')
6+
const result = todo(check)
7+
if (!result) throw new Error('Check was not truthy.')
8+
return result
9+
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,15 @@
6969
"ava": "^3.3.0",
7070
"aws-sdk": "2.804.0",
7171
"eslint": "^7.4.0",
72+
"eslint-config-prettier": "^8.3.0",
7273
"eslint-config-standard": "^16.0.0",
7374
"eslint-plugin-import": "^2.18.2",
7475
"eslint-plugin-node": "^11.0.0",
7576
"eslint-plugin-promise": "^5.1.0",
7677
"nodemon": "^2.0.7",
7778
"npm-run-all": "^4.1.2",
7879
"nyc": "^15.0.0",
79-
"prettier": "^2.0.2",
80+
"prettier": "^2.3.0",
8081
"serverless": "^2.38.0",
8182
"serverless-domain-manager": "^5.0.0",
8283
"serverless-jetpack": "^0.10.8",

yarn.lock

+9-4
Original file line numberDiff line numberDiff line change
@@ -2972,6 +2972,11 @@ escape-string-regexp@^4.0.0:
29722972
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
29732973
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
29742974

2975+
eslint-config-prettier@^8.3.0:
2976+
version "8.3.0"
2977+
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz#f7471b20b6fe8a9a9254cc684454202886a2dd7a"
2978+
integrity sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==
2979+
29752980
eslint-config-standard@^16.0.0:
29762981
version "16.0.2"
29772982
resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-16.0.2.tgz#71e91727ac7a203782d0a5ca4d1c462d14e234f6"
@@ -6380,10 +6385,10 @@ prepend-http@^2.0.0:
63806385
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
63816386
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
63826387

6383-
prettier@^2.0.2:
6384-
version "2.2.1"
6385-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
6386-
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
6388+
prettier@^2.3.0:
6389+
version "2.3.0"
6390+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18"
6391+
integrity sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==
63876392

63886393
pretty-ms@^7.0.1:
63896394
version "7.0.1"

0 commit comments

Comments
 (0)