summaryrefslogtreecommitdiff
path: root/.prettierrc.cjs
diff options
context:
space:
mode:
authorPawel Zelawski <pawel.zelawski@outlook.com>2025-04-10 10:46:15 +0200
committerPawel Zelawski <pawel.zelawski@outlook.com>2025-04-10 10:46:15 +0200
commitef435a15ca67c829ce6cd8551ac45c419cb9792e (patch)
treed8c1cbe036370d6952a306f0fea0a7de3522ae31 /.prettierrc.cjs
parentb290aec2899208169b5f90c9e2b66ebffd565a87 (diff)
feat: setup project structure and tooling
- Initialized npm project and added core dependencies (React, Express, etc.). - Added development dependencies (TypeScript, Vite, ESLint, Prettier, etc.). - Configured TypeScript (`tsconfig.json`). - Configured Vite (`vite.config.ts`) with React plugin and API proxy. - Configured ESLint (`.eslintrc.cjs`) and Prettier (`.prettierrc.cjs`, `.prettierignore`). - Added standard `.gitignore`. - Created basic project structure (`src/client`, `src/server`, `public`). - Created default `.env` file (PORT=3001, PUBLIC_URL=http://localhost:3001).
Diffstat (limited to '.prettierrc.cjs')
-rw-r--r--.prettierrc.cjs9
1 files changed, 9 insertions, 0 deletions
diff --git a/.prettierrc.cjs b/.prettierrc.cjs
new file mode 100644
index 0000000..57779e5
--- /dev/null
+++ b/.prettierrc.cjs
@@ -0,0 +1,9 @@
+module.exports = {
+ semi: true, // Add semicolons at the end of statements
+ trailingComma: 'es5', // Add trailing commas where valid in ES5 (objects, arrays, etc.)
+ singleQuote: true, // Use single quotes instead of double quotes
+ printWidth: 80, // Specify the line length that the printer will wrap on
+ tabWidth: 2, // Specify the number of spaces per indentation-level
+ useTabs: false, // Indent lines with spaces instead of tabs
+ endOfLine: 'lf', // Use Line Feed as the line ending
+}; \ No newline at end of file