Fixes linter warnings
This commit is contained in:
parent
91bf08d8a4
commit
bd86d61b6f
|
@ -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)
|
||||
|
|
|
@ -121,6 +121,7 @@
|
|||
},
|
||||
submitAnswer (option, event) {
|
||||
if (!option) {
|
||||
// eslint-disable-next-line
|
||||
return console.warn('Invalid answer')
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue