Migrate util, types, state, sticker-creator to ESLint
This commit is contained in:
parent
372aa44e49
commit
2ade4acd52
115 changed files with 647 additions and 448 deletions
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue