Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

chore(format): add a Prettier and EditorConfig setup at the root

spacesdrive2fae402aeaf0
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..6bb7e65
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,14 @@
+root = true
+
+[*]
+charset = utf-8
+indent_style = space
+indent_size = 2
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[backend/**.{js,json}]
+indent_size = 4
+
+[*.md]
+trim_trailing_whitespace = false
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 0000000..c152471
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,11 @@
+node_modules
+**/dist
+**/.wrangler
+package-lock.json
+# generated by shadcn, kept as the CLI writes it
+frontend/src/components/ui
+# saved outputs that the golden tests compare byte for byte
+backend/tests/fixtures/*.golden.json
+backend/services/fixtures/*.golden.json
+# prose is wrapped by hand
+*.md
diff --git a/.prettierrc.json b/.prettierrc.json
new file mode 100644
index 0000000..ee4a8c9
--- /dev/null
+++ b/.prettierrc.json
@@ -0,0 +1,14 @@
+{
+ "singleQuote": true,
+ "semi": true,
+ "trailingComma": "all",
+ "arrowParens": "avoid",
+ "printWidth": 120,
+ "tabWidth": 2,
+ "overrides": [
+ {
+ "files": "backend/**/*.{js,json}",
+ "options": { "tabWidth": 4 }
+ }
+ ]
+}