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:
parent
d5d0eabdfd
commit
85490fbc98
2 changed files with 2 additions and 6 deletions
|
@ -97,6 +97,7 @@ module.exports = function(grunt) {
|
||||||
files: [
|
files: [
|
||||||
'Gruntfile.js',
|
'Gruntfile.js',
|
||||||
'js/**/*.js',
|
'js/**/*.js',
|
||||||
|
'!js/background.js',
|
||||||
'!js/jquery.js',
|
'!js/jquery.js',
|
||||||
'!js/libtextsecure.js',
|
'!js/libtextsecure.js',
|
||||||
'!js/WebAudioRecorderMp3.js',
|
'!js/WebAudioRecorderMp3.js',
|
||||||
|
|
|
@ -11,8 +11,7 @@
|
||||||
/* global Whisper: false */
|
/* global Whisper: false */
|
||||||
/* global wrapDeferred: false */
|
/* global wrapDeferred: false */
|
||||||
|
|
||||||
|
;(async function() {
|
||||||
;(/* jshint ignore:start */ async /* jshint ignore:end */function() {
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const { IdleDetector, MessageDataMigrator } = Signal.Workflow;
|
const { IdleDetector, MessageDataMigrator } = Signal.Workflow;
|
||||||
|
@ -81,7 +80,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
/* jshint ignore:start */
|
|
||||||
const cancelInitializationMessage = Views.Initialization.setMessage();
|
const cancelInitializationMessage = Views.Initialization.setMessage();
|
||||||
console.log('Start IndexedDB migrations');
|
console.log('Start IndexedDB migrations');
|
||||||
|
|
||||||
|
@ -115,7 +113,6 @@
|
||||||
idleDetector.stop();
|
idleDetector.stop();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
/* jshint ignore:end */
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
// We need this 'first' check because we don't want to start the app up any other time
|
// We need this 'first' check because we don't want to start the app up any other time
|
||||||
|
@ -575,7 +572,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
/* jshint ignore:start */
|
|
||||||
|
|
||||||
// Descriptors
|
// Descriptors
|
||||||
const getGroupDescriptor = group => ({
|
const getGroupDescriptor = group => ({
|
||||||
|
@ -684,7 +680,6 @@
|
||||||
getMessageDescriptor: getDescriptorForSent,
|
getMessageDescriptor: getDescriptorForSent,
|
||||||
createMessage: createSentMessage,
|
createMessage: createSentMessage,
|
||||||
});
|
});
|
||||||
/* jshint ignore:end */
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
function isMessageDuplicate(message) {
|
function isMessageDuplicate(message) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue