Disable JSHint for `background.js`

It doesn’t recognize `async` and I couldn’t figure out how to ignore a top-level
`async` without cascading errors.
This commit is contained in:
Daniel Gasienica 2018-03-28 10:10:09 -04:00
parent d5d0eabdfd
commit 85490fbc98
2 changed files with 2 additions and 6 deletions

View File

@ -97,6 +97,7 @@ module.exports = function(grunt) {
files: [
'Gruntfile.js',
'js/**/*.js',
'!js/background.js',
'!js/jquery.js',
'!js/libtextsecure.js',
'!js/WebAudioRecorderMp3.js',

View File

@ -11,8 +11,7 @@
/* global Whisper: false */
/* global wrapDeferred: false */
;(/* jshint ignore:start */ async /* jshint ignore:end */function() {
;(async function() {
'use strict';
const { IdleDetector, MessageDataMigrator } = Signal.Workflow;
@ -81,7 +80,6 @@
};
/* eslint-enable */
/* jshint ignore:start */
const cancelInitializationMessage = Views.Initialization.setMessage();
console.log('Start IndexedDB migrations');
@ -115,7 +113,6 @@
idleDetector.stop();
}
});
/* jshint ignore:end */
/* eslint-disable */
// We need this 'first' check because we don't want to start the app up any other time
@ -575,7 +572,6 @@
}
/* eslint-enable */
/* jshint ignore:start */
// Descriptors
const getGroupDescriptor = group => ({
@ -684,7 +680,6 @@
getMessageDescriptor: getDescriptorForSent,
createMessage: createSentMessage,
});
/* jshint ignore:end */
/* eslint-disable */
function isMessageDuplicate(message) {