ignore some lint warnings

This commit is contained in:
Danny Coates 2018-03-01 21:36:45 -08:00
parent fddf1c40dc
commit 80e9f129d8
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
6 changed files with 15 additions and 5 deletions

View file

@ -19,6 +19,7 @@ export default function(state, emitter) {
return;
}
if (target.files.length > 1) {
// eslint-disable-next-line no-alert
return alert(state.translate('uploadPageMultipleFilesAlert'));
}
const file = target.files[0];
@ -26,9 +27,8 @@ export default function(state, emitter) {
return;
}
if (file.size > MAXFILESIZE) {
window.alert(
state.translate('fileTooBig', { size: bytes(MAXFILESIZE) })
);
// eslint-disable-next-line no-alert
alert(state.translate('fileTooBig', { size: bytes(MAXFILESIZE) }));
return;
}
emitter.emit('upload', { file, type: 'drop' });