Browse Source

Style: Ensure svgs have trailing newlines

Thaddeus Crews 6 months ago
parent
commit
742bd5cc4c
2 changed files with 4 additions and 3 deletions
  1. 0 3
      .editorconfig
  2. 4 0
      misc/utility/svgo.config.mjs

+ 0 - 3
.editorconfig

@@ -15,6 +15,3 @@ indent_style = space
 [{*.{yml,yaml},.clang{-format,-tidy,d}}]
 indent_size = 2
 indent_style = space
-
-[*.svg]
-insert_final_newline = false

+ 4 - 0
misc/utility/svgo.config.mjs

@@ -1,6 +1,10 @@
 export default {
 	multipass: true,
 	precision: 2,
+	js2svg: {
+		eol: "lf",
+		finalNewline: true,
+	},
 	plugins: [
 		{
 			name: "preset-default",