Run the formatter on a set of files
Arguments
Name | Description |
---|
file, dir | filepaths, folders |
Options
Name | Description |
---|
--write | Edit the files in place (beware!) instead of printing the diff to the console |
--skip-errors | Skip 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 |
--verbose | Print 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 |