Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

rename

Blue Mousec26cff81bee3
diff --git a/.prettierrc.js b/.prettierrc.cjs
similarity index 84%
rename from .prettierrc.js
rename to .prettierrc.cjs
index bd6302ddd..f4360c220 100644
--- a/.prettierrc.js
+++ b/.prettierrc.cjs
@@ -1,4 +1,8 @@
-module.exports = {
+/**
+ * @see https://prettier.io/docs/configuration
+ * @type {import("prettier").Config}
+ */
+const config = {
printWidth: 120, // max 120 chars in line, code is easy to read
useTabs: false, // use spaces instead of tabs
tabWidth: 2, // "visual width" of of the "tab"
@@ -11,3 +15,5 @@ module.exports = {
bracketSameLine: false, // pretty JSX
endOfLine: 'lf', // 'lf' for linux, 'crlf' for windows, we need to use 'lf' for git
}
+
+module.exports = config