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