run lint again
MODIFY
packages/@romejs/js-ast-utils/doesNodeMatchPattern.ts
packages/@romejs/js-ast-utils/doesNodeMatchPattern.ts
@@ -53,7 +53,7 @@ export default function doesNodeMatchPattern(
const {parts: expectedParts, hasDoubleStar} = split(match);
// Fast path for single part pattern matching
- if (expectedParts.length && expectedParts[0] !== '*' && !hasDoubleStar) {
+ if (expectedParts.length && expectedParts[0] !== "*" && !hasDoubleStar) {
return isIdentifierish(node) && node.name === expectedParts[0];
}

MODIFY
packages/@romejs/js-formatter/builders/classes/ClassPrivateMethod.ts
packages/@romejs/js-formatter/builders/classes/ClassPrivateMethod.ts
import {Token, concat, space} from "../../tokens";
import {Builder} from "@romejs/js-formatter";
-import { ClassPrivateMethod } from '@romejs/js-ast';
+import {ClassPrivateMethod} from "@romejs/js-ast";
import {printMethod} from "../utils";
export default function ClassPrivateMethod(
builder: Builder,
- node: ClassPrivateMethod
+ node: ClassPrivateMethod,
): Token {
const printed = printMethod(builder, node);
if (node.meta.static === true) {
- return concat(['static', space, printed]);
+ return concat(["static", space, printed]);
} else {
return printed;
}

MODIFY
packages/@romejs/js-formatter/builders/typescript/TSConstructorType.ts
packages/@romejs/js-formatter/builders/typescript/TSConstructorType.ts
* LICENSE file in the root directory of this source tree.
*/
-import {Token, space, concat} from "../../tokens";
+import {Token, concat, space} from "../../tokens";
import {Builder} from "@romejs/js-formatter";
-import { TSConstructorType } from '@romejs/js-ast';
+import {TSConstructorType} from "@romejs/js-ast";
export default function TSConstructorType(
builder: Builder,
- node: TSConstructorType
+ node: TSConstructorType,
): Token {
- const tokens: Array<Token> = ['new', space, builder.tokenize(node.meta, node)];
+ const tokens: Array<Token> = ["new", space, builder.tokenize(node.meta, node)];
if (node.typeAnnotation) {
- tokens.push(space, '=>', space, builder.tokenize(node.typeAnnotation, node));
+ tokens.push(space, "=>", space, builder.tokenize(node.typeAnnotation, node));
}
return concat(tokens);

MODIFY
packages/@romejs/js-formatter/builders/typescript/TSTemplateLiteralTypeAnnotation.ts
packages/@romejs/js-formatter/builders/typescript/TSTemplateLiteralTypeAnnotation.ts
@@ -12,7 +12,7 @@ import { escapeString } from "@romejs/string-escape";
export default function TSTemplateLiteralTypeAnnotation(
builder: Builder,
- node: TSTemplateLiteralTypeAnnotation
+ node: TSTemplateLiteralTypeAnnotation,
): Token {
- return escapeString(node.value, {quote: '`'});
+ return escapeString(node.value, {quote: "`"});
}

MODIFY
packages/@romejs/js-formatter/builders/utils.ts
packages/@romejs/js-formatter/builders/utils.ts
@@ -10,13 +10,13 @@ import {
AnyNode,
BreakStatement,
ClassMethod,
+ ClassPrivateMethod,
ContinueStatement,
ObjectMethod,
PatternMeta,
ReturnStatement,
TSDeclareMethod,
ThrowStatement,
- ClassPrivateMethod,
} from "@romejs/js-ast";
import {isBinary} from "@romejs/js-ast-utils";
import Builder, {BuilderMethod} from "../Builder";

run lint again