Update Rome formatting
MODIFY
packages/@romejs/core/master/linter/Linter.ts
packages/@romejs/core/master/linter/Linter.ts
@@ -70,7 +70,9 @@ export default class Linter {
}
if (hasPendingFixes) {
- reporter.info('Fixes available. Run <command>rome lint --fix</command> to apply.');
+ reporter.info(
+ 'Fixes available. Run <command>rome lint --fix</command> to apply.',
+ );
}
} else {
const fileCount = paths.size;
@@ -79,9 +81,7 @@ export default class Linter {
} else if (fileCount === 1) {
reporter.info(`<emphasis>1</emphasis> file linted`);
} else {
- reporter.info(
- `<number emphasis>${fileCount}</number> files linted`,
- );
+ reporter.info(`<number emphasis>${fileCount}</number> files linted`);
}
}
});

MODIFY
packages/@romejs/js-generator/Generator.ts
packages/@romejs/js-generator/Generator.ts
@@ -355,7 +355,9 @@ export default class Generator {
return;
}
+ if (!this.parenPushNewlineState) {
this.buf.removeTrailing(' ');
+ }
this.append('\n');
}

MODIFY
packages/@romejs/js-parser/parser/type-systems.ts
packages/@romejs/js-parser/parser/type-systems.ts
@@ -267,11 +267,8 @@ export function parseClassImplements(
}
export function parsePrimaryTypeAnnotation(parser: JSParser): AnyPrimaryType {
- return parseFlowOrTS(
- parser,
- 'type annotation',
- parseFlowTypeAnnotation,
- () => parseTSTypeAnnotation(parser, true),
+ return parseFlowOrTS(parser, 'type annotation', parseFlowTypeAnnotation, () =>
+ parseTSTypeAnnotation(parser, true)
);
}

Update Rome formatting