diff --git a/.prettierrc b/.prettierrc index d87faa5..dd0117f 100644 --- a/.prettierrc +++ b/.prettierrc @@ -6,6 +6,12 @@ "options": { "parser": "astro" } + }, + { + "files": "*.svg", + "options": { + "parser": "html" + } } ] } diff --git a/package.json b/package.json index c09dba9..3cbd9c9 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "dev": "astro dev --port 3000", "build": "astro build", "preview": "astro preview", - "astro": "astro" + "astro": "astro", + "fmt": "prettier . --write" }, "dependencies": { "@astrojs/node": "^9.3.0",