fix another typescript error; time to see how to add that vim plugin haha
ADD
packages/@romejs/js-compiler/lint/rules/.emptyMatches.ts.swp
packages/@romejs/js-compiler/lint/rules/.emptyMatches.ts.swp
Binary files /dev/null and b/packages/@romejs/js-compiler/lint/rules/.emptyMatches.ts.swp differ

MODIFY
packages/@romejs/js-compiler/lint/rules/emptyMatches.ts
packages/@romejs/js-compiler/lint/rules/emptyMatches.ts
@@ -17,7 +17,10 @@ export default {
name: 'noEmptyCharacterClass',
enter(path: Path): TransformExitResult {
const {context, node} = path;
- if (node.type === 'RegExpLiteral') {
+ if (
+ node.type === 'RegExpLiteral' &&
+ node.expression.type === 'RegExpSubExpression'
+ ) {
const {body} = node.expression;
if (body && body.every(isQuantifiedMinZero)) {
context.addNodeDiagnostic(node, descriptions.LINT.EMPTY_MATCHES);

fix another typescript error; time to see how to add that vim plugin haha