rome format <file, dir...>

Run the formatter on a set of files

Arguments

NameDescription
file, dirfilepaths, folders

Options

NameDescription
--writeEdit the files in place (beware!) instead of printing the diff to the console
--skip-errorsSkip over files containing syntax errors instead of emitting an error diagnostic
--max-diagnostics <NUMBER>Cap the amount of diagnostics displayed
--config-path <dir...>Set the filesystem path to the config dir of the rome.json file
--verbosePrint additional verbose advices on diagnostics
--indent-style <style>Change the indention character
--indent-size <SIZE>How many spaces should be used for indentation
--line-width <width>How many characters the formatter is allowed to print in a single line
--quote-style <style>Changes the quotation character for strings
--quote-properties <property>Changes when properties in object should be quoted
--trailing-comma <trailing>Changes trailing commas in multi-line comma-separated syntactic structures
--semicolons <rule>Changes when to print semicolons for statements
--stdin-file-path <string>A file name with its extension to pass when reading from standard in