Skip to content

final_newline

File must end with a single \n. Fixable via file_append_final_newline.

- id: text-files-final-newline
kind: final_newline
paths: "**/*.{md,yml,yaml,toml,sh}"
level: warning
fix:
file_append_final_newline: {}

This rule takes no kind-specific options.

Plus the common paths, level, id, and when fields. This table is generated from the JSON Schema; option types and defaults are authoritative.