Initial move towards new ESLint config supporting TS

Co-authored-by: Sidney Keese <sidney@carbonfive.com>
This commit is contained in:
Chris Svenningsen 2020-08-31 17:09:28 -07:00 committed by Josh Perez
parent c2aa8eb82b
commit 5b1536cc02
22 changed files with 3300 additions and 597 deletions

6
js/modules/i18n.d.ts vendored Normal file
View file

@ -0,0 +1,6 @@
import { LocalizerType } from '../../ts/types/Util';
export const setup: (
language: string,
messages: Record<string, unknown>
) => LocalizerType;

View file

@ -239,7 +239,7 @@ function assembleChunks(chunkDescriptors) {
return concatenateBytes(...chunks);
}
const ASCII_PATTERN = new RegExp('[\\u0000-\\u007F]', 'g');
const ASCII_PATTERN = new RegExp('[\\u0020-\\u007F]', 'g');
function isLinkSneaky(link) {
// Any links which contain auth are considered sneaky

View file

@ -3,7 +3,6 @@
/* global drawAttention: false */
/* global i18n: false */
/* global Signal: false */
/* global storage: false */
/* global Whisper: false */
/* global _: false */

View file

@ -4,7 +4,6 @@
_,
ConversationController,
MessageController,
window
*/
/* eslint-disable more/no-then */