Skip to content

Commit

Permalink
chore(deps): update dependency prettier to ~2.3.0 (#380)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency prettier to ~2.3.0

* prettier

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Ryan Zimmerman <[email protected]>
  • Loading branch information
3 people authored May 10, 2021
1 parent 60b476d commit ab73f36
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
6 changes: 2 additions & 4 deletions lib/args.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ Usage:
},
})
.option('base', {
desc:
'Mirror the directory structure relative to this path in the output directory, for use with --dir',
desc: 'Mirror the directory structure relative to this path in the output directory, for use with --dir',
type: 'string',
implies: 'dir',
})
Expand All @@ -105,8 +104,7 @@ Usage:
type: 'boolean',
})
.option('poll', {
desc:
'Use polling for file watching. Can optionally pass polling interval; default 100 ms',
desc: 'Use polling for file watching. Can optionally pass polling interval; default 100 ms',
implies: 'watch',
})
.option('config', {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"nyc": "^15.0.0",
"postcss": "^8.0.4",
"postcss-import": "^12.0.0",
"prettier": "~2.2.0",
"prettier": "~2.3.0",
"sugarss": "^3.0.0",
"uuid": "^8.0.0"
},
Expand Down
21 changes: 9 additions & 12 deletions test/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ testCb('--watch works', (t) => {

// Helper functions:
function isEqual(p, expected) {
return Promise.all([
read(path.join(dir, p)),
read(expected),
]).then(([a, e]) => t.is(a, e))
return Promise.all([read(path.join(dir, p)), read(expected)]).then(
([a, e]) => t.is(a, e)
)
}

function done(err) {
Expand Down Expand Up @@ -145,10 +144,9 @@ testCb('--watch postcss.config.js', (t) => {

// Helper functions:
function isEqual(p, expected) {
return Promise.all([
read(path.join(dir, p)),
read(expected),
]).then(([a, e]) => t.is(a, e))
return Promise.all([read(path.join(dir, p)), read(expected)]).then(
([a, e]) => t.is(a, e)
)
}

function done(err) {
Expand Down Expand Up @@ -216,10 +214,9 @@ testCb('--watch dependencies', (t) => {

// Helper functions:
function isEqual(p, expected) {
return Promise.all([
read(path.join(dir, p)),
read(expected),
]).then(([a, e]) => t.is(a, e))
return Promise.all([read(path.join(dir, p)), read(expected)]).then(
([a, e]) => t.is(a, e)
)
}

function done(err) {
Expand Down

0 comments on commit ab73f36

Please sign in to comment.