more lint
This commit is contained in:
parent
74200b2fb2
commit
123a1848ed
|
@ -11,6 +11,9 @@
|
|||
"no-else-return": 0,
|
||||
"new-cap": 0,
|
||||
"no-param-reassign": 0,
|
||||
no-unused-vars: ["error", {
|
||||
"argsIgnorePattern": "^_",
|
||||
}],
|
||||
},
|
||||
"settings" : {
|
||||
"import/resolver": {
|
||||
|
|
|
@ -77,14 +77,14 @@ class MarkdownEditor extends React.Component {
|
|||
method: 'post',
|
||||
body: formData,
|
||||
})
|
||||
.then(s3Response => {
|
||||
.then(_s3Response => {
|
||||
this.props.replaceText({
|
||||
original: pendingUploadTag,
|
||||
new: `![${file.name}](${data.asset.url})`,
|
||||
});
|
||||
editor.setCursor(newCursorPositionLine, 0);
|
||||
})
|
||||
.catch(err => {
|
||||
.catch(_err => {
|
||||
this.props.replaceText({
|
||||
original: pendingUploadTag,
|
||||
new: '',
|
||||
|
|
Reference in New Issue