Skip to content

Commit

Permalink
Update dependency prettier to v2 (#419)
Browse files Browse the repository at this point in the history
* Update dependency prettier to v2

* Update prettier config

* Format code

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Ryan Zimmerman <[email protected]>
  • Loading branch information
3 people authored Oct 13, 2020
1 parent c5679db commit 19632bc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/join-media.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

module.exports = function(parentMedia, childMedia) {
module.exports = function (parentMedia, childMedia) {
if (!parentMedia.length && childMedia.length) return childMedia
if (parentMedia.length && !childMedia.length) return parentMedia
if (!parentMedia.length && !childMedia.length) return []
Expand Down
2 changes: 1 addition & 1 deletion lib/parse-statements.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function split(params, start) {
return list
}

module.exports = function(result, styles) {
module.exports = function (result, styles) {
const statements = []
let nodes = []

Expand Down
2 changes: 1 addition & 1 deletion lib/resolve-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function resolveModule(id, opts) {
})
}

module.exports = function(id, base, options) {
module.exports = function (id, base, options) {
const paths = options.path

const resolveOpts = {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eslint-plugin-prettier": "^3.0.0",
"postcss": "^8.0.0",
"postcss-scss": "^2.0.0",
"prettier": "~1.19.1",
"prettier": "~2.1.0",
"sugarss": "^2.0.0"
},
"peerDependencies": {
Expand All @@ -55,7 +55,7 @@
"error",
{
"semi": false,
"trailingComma": "es5"
"arrowParens": "avoid"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/check-fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function read(name, ext) {
return fs.readFileSync(`test/fixtures/${name}${ext}`, "utf8")
}

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

0 comments on commit 19632bc

Please sign in to comment.