Skip to content

format

Prettier and editorconfig-checker on every file. One [format] block sets the indentation, line length, quotes, and line endings for every formatter.

Check Stage Level What it does
format/prettier commit recommended Checks each file Prettier handles for unformatted code.
format/editorconfig-checker commit recommended Checks line endings, final newlines, and trailing whitespace in every file against .editorconfig.
Setting What it sets
format.indent_style The character of one indent level: space or tab.
format.indent_width Spaces per indent level.
format.print_width The line width formatters wrap at.
format.line_ending The line ending every file uses: lf or crlf.
format.final_newline Whether every file ends with a newline.
format.quotes Single or double, for the languages where a formatter chooses.
format.trailing_commas Where trailing commas go: all, es5, or none.
format.semicolons Whether JavaScript and TypeScript statements end with semicolons.
format.override Formatting options for repository-relative paths, in order.

Always selected.

Tool Version
prettier 3.8.1
editorconfig-checker 3.4.0

gspot writes .editorconfig, .gspot/configurations/general/format/prettier.json, and .prettierignore.