mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Migrate util, types, state, sticker-creator to ESLint
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable no-console */
|
||||
// tslint:disable no-console
|
||||
import * as fs from 'fs';
|
||||
import { join, relative } from 'path';
|
||||
@@ -298,6 +299,7 @@ function setupRules(allRules: Array<RuleType>) {
|
||||
throw new Error(`Rule '${rule.name}' is missing an expression`);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
rule.regex = new RegExp(rule.expression, 'g');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user