Add prettier

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-08-31 11:26:42 +02:00
parent 19d24340d9
commit 687174a8e0
5 changed files with 52 additions and 14 deletions
+3 -5
View File
@@ -1,7 +1,5 @@
#!/bin/sh
set -e
#!/bin/bash
set -euo pipefail
# Checks local /node_modules,
# if not found will download that package and execute it.
# Does not modify files, informs bad code format
npx eslint .
npx prettier "**/*.@(ts|js|svelte|json|css|html)" --ignore-path .gitignore --check