Skip to content

Commit 19632bc

Browse files
renovate[bot]renovate-botRyanZim
authoredOct 13, 2020
Update dependency prettier to v2 (#419)
* Update dependency prettier to v2 * Update prettier config * Format code Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Ryan Zimmerman <opensrc@ryanzim.com>
1 parent c5679db commit 19632bc

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed
 

‎lib/join-media.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict"
22

3-
module.exports = function(parentMedia, childMedia) {
3+
module.exports = function (parentMedia, childMedia) {
44
if (!parentMedia.length && childMedia.length) return childMedia
55
if (parentMedia.length && !childMedia.length) return parentMedia
66
if (!parentMedia.length && !childMedia.length) return []

‎lib/parse-statements.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function split(params, start) {
2020
return list
2121
}
2222

23-
module.exports = function(result, styles) {
23+
module.exports = function (result, styles) {
2424
const statements = []
2525
let nodes = []
2626

‎lib/resolve-id.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function resolveModule(id, opts) {
1111
})
1212
}
1313

14-
module.exports = function(id, base, options) {
14+
module.exports = function (id, base, options) {
1515
const paths = options.path
1616

1717
const resolveOpts = {

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"eslint-plugin-prettier": "^3.0.0",
3434
"postcss": "^8.0.0",
3535
"postcss-scss": "^2.0.0",
36-
"prettier": "~1.19.1",
36+
"prettier": "~2.1.0",
3737
"sugarss": "^2.0.0"
3838
},
3939
"peerDependencies": {
@@ -55,7 +55,7 @@
5555
"error",
5656
{
5757
"semi": false,
58-
"trailingComma": "es5"
58+
"arrowParens": "avoid"
5959
}
6060
]
6161
}

‎test/helpers/check-fixture.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function read(name, ext) {
1414
return fs.readFileSync(`test/fixtures/${name}${ext}`, "utf8")
1515
}
1616

17-
module.exports = function(t, file, opts, postcssOpts, warnings) {
17+
module.exports = function (t, file, opts, postcssOpts, warnings) {
1818
opts = Object.assign({ path: "test/fixtures/imports" }, opts)
1919
postcssOpts = Object.assign({ from: undefined }, postcssOpts)
2020
if (typeof file === "string") file = { name: file, ext: ".css" }

0 commit comments

Comments
 (0)
Please sign in to comment.