chore: update Prettier to 1.16.1

This commit is contained in:
Julien Fontanet 2019-01-22 15:52:12 +01:00
parent ad58f6a147
commit 55b762f490
5 changed files with 11 additions and 23 deletions

View File

@ -16,9 +16,9 @@ function runCommand(commands, [command, ...args]) {
return `Usage: return `Usage:
${Object.keys(commands) ${Object.keys(commands)
.filter(command => command !== 'help') .filter(command => command !== 'help')
.map(command => ` ${this.command} ${command}`) .map(command => ` ${this.command} ${command}`)
.join('\n\n')}` .join('\n\n')}`
} }
throw `invalid command ${command}` // eslint-disable-line no-throw-literal throw `invalid command ${command}` // eslint-disable-line no-throw-literal

View File

@ -120,13 +120,9 @@ class XoServerNagios {
const client = new net.Socket() const client = new net.Socket()
client.connect( client.connect(this._conf.port, this._conf.server, () => {
this._conf.port, console.log('Successful connection')
this._conf.server, })
() => {
console.log('Successful connection')
}
)
client.on('data', data => { client.on('data', data => {
const timestamp = data.readInt32BE(128) const timestamp = data.readInt32BE(128)

View File

@ -2339,10 +2339,7 @@ export default class Xapi extends XapiBase {
const fs = promisifyAll(fatfs.createFileSystem(fatfsBuffer(buffer))) const fs = promisifyAll(fatfs.createFileSystem(fatfsBuffer(buffer)))
await Promise.all([ await Promise.all([
fs.writeFile( fs.writeFile('meta-data', 'instance-id: ' + vm.uuid + '\n'),
'meta-data',
'instance-id: ' + vm.uuid + '\n'
),
fs.writeFile('user-data', config), fs.writeFile('user-data', config),
]) ])

View File

@ -109,12 +109,7 @@ export default class NoVnc extends Component {
// if not available from the URL, use the default ones // if not available from the URL, use the default ones
const port = url.port || (isSecure ? 443 : 80) const port = url.port || (isSecure ? 443 : 80)
rfb.connect( rfb.connect(url.hostname, port, null, clippedPath)
url.hostname,
port,
null,
clippedPath
)
disableShortcuts() disableShortcuts()
} }

View File

@ -10346,9 +10346,9 @@ preserve@^0.2.0:
integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks= integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=
prettier@^1.10.2: prettier@^1.10.2:
version "1.16.0" version "1.16.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.0.tgz#104dd25f5ee3d0c9d0a6ce4bb40ced8481d51219" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.1.tgz#534c2c9d7853f8845e5e078384e71973bd74089f"
integrity sha512-MCBCYeAuZfejUPdEpkleLWvpRBwLii/Sp5jQs0eb8Ul/drGIDjkL6tAU24tk6yCGf0KPV5rhPPPlczfBmN2pWQ== integrity sha512-XXUITwIkGb3CPJ2hforHah/zTINRyie5006Jd2HKy2qz7snEJXl0KLfsJZW/wst9g6R2rFvqba3VpNYdu1hDcA==
pretty-format@^23.0.0, pretty-format@^23.6.0: pretty-format@^23.0.0, pretty-format@^23.6.0:
version "23.6.0" version "23.6.0"