From 5af198a57c4585fb9879af4f1c7d10c5ce4fe6fd Mon Sep 17 00:00:00 2001 From: Naoki Oketani Date: Sat, 3 May 2025 12:48:31 +0000 Subject: [PATCH] docs: update clinerules formatting and TypeScript configuration --- .clinerules/rules.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.clinerules/rules.md b/.clinerules/rules.md index 298048c..113dc2c 100644 --- a/.clinerules/rules.md +++ b/.clinerules/rules.md @@ -13,15 +13,17 @@ This document outlines the development guidelines and best practices for our Typ - Use `module: NodeNext` for the latest Node.js module resolution - Use `noImplicitAny: true` to ensure all types are explicitly defined - Configure `outDir: "./lib"` and `rootDir: "./src"` to control the output directory structure + - Set `baseUrl: "./"` and configure `paths` for module resolution - **Code Formatting** - Use Prettier for consistent code formatting with the following settings: + - Maximum line width of 80 characters (`printWidth: 80`) - 2-space indentation (`tabWidth: 2`) - No semicolons (`semi: false`) - Single quotes (`singleQuote: true`) - No trailing commas (`trailingComma: "none"`) - - No spaces inside brackets (`bracketSpacing: false`) - Avoid parentheses around single arrow function parameters (`arrowParens: "avoid"`) + - Use TypeScript parser (`parser: "typescript"`) - Configure ESLint with TypeScript parser for static code analysis - Enforce consistent naming conventions: - camelCase for variables and functions