more lint

This commit is contained in:
Jori Lallo 2016-09-02 15:41:28 -07:00
parent 74200b2fb2
commit 123a1848ed
2 changed files with 5 additions and 2 deletions

View File

@ -11,6 +11,9 @@
"no-else-return": 0,
"new-cap": 0,
"no-param-reassign": 0,
no-unused-vars: ["error", {
"argsIgnorePattern": "^_",
}],
},
"settings" : {
"import/resolver": {

View File

@ -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: '',