Fixes linter warnings

This commit is contained in:
Moritz Kröger 2019-04-10 09:21:27 +01:00
parent 91bf08d8a4
commit bd86d61b6f
3 changed files with 4 additions and 2 deletions

View file

@ -217,7 +217,7 @@ const configTree = {
const spinner = ora(`Building 'config.yml' for Netlify CMS admin.`).start()
try {
await writeFile(PATH_DESTINATION, yaml.safeDump(configTree))
spinner.succeed(`'config.yml' has been succuessfully created!`)
spinner.succeed(`'config.yml' has been successfully created!`)
} catch (error) {
spinner.fail(`There was an error creating 'config.yml': ${error.message}`)
throw new Error(error)

View file

@ -121,6 +121,7 @@
},
submitAnswer (option, event) {
if (!option) {
// eslint-disable-next-line
return console.warn('Invalid answer')
}

View file

@ -117,7 +117,8 @@
setTimeout(() => { this.showClipboardInfo = false }, this.infoTimeout)
}
} catch (error) {
console.log('Oops, unable to copy', error)
// eslint-disable-next-line
console.error('Oops, unable to copy', error)
}
document.body.removeChild($textarea)