docs: update clinerules formatting and TypeScript configuration
This commit is contained in:
@@ -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 `module: NodeNext` for the latest Node.js module resolution
|
||||||
- Use `noImplicitAny: true` to ensure all types are explicitly defined
|
- Use `noImplicitAny: true` to ensure all types are explicitly defined
|
||||||
- Configure `outDir: "./lib"` and `rootDir: "./src"` to control the output directory structure
|
- Configure `outDir: "./lib"` and `rootDir: "./src"` to control the output directory structure
|
||||||
|
- Set `baseUrl: "./"` and configure `paths` for module resolution
|
||||||
|
|
||||||
- **Code Formatting**
|
- **Code Formatting**
|
||||||
- Use Prettier for consistent code formatting with the following settings:
|
- Use Prettier for consistent code formatting with the following settings:
|
||||||
|
- Maximum line width of 80 characters (`printWidth: 80`)
|
||||||
- 2-space indentation (`tabWidth: 2`)
|
- 2-space indentation (`tabWidth: 2`)
|
||||||
- No semicolons (`semi: false`)
|
- No semicolons (`semi: false`)
|
||||||
- Single quotes (`singleQuote: true`)
|
- Single quotes (`singleQuote: true`)
|
||||||
- No trailing commas (`trailingComma: "none"`)
|
- No trailing commas (`trailingComma: "none"`)
|
||||||
- No spaces inside brackets (`bracketSpacing: false`)
|
|
||||||
- Avoid parentheses around single arrow function parameters (`arrowParens: "avoid"`)
|
- Avoid parentheses around single arrow function parameters (`arrowParens: "avoid"`)
|
||||||
|
- Use TypeScript parser (`parser: "typescript"`)
|
||||||
- Configure ESLint with TypeScript parser for static code analysis
|
- Configure ESLint with TypeScript parser for static code analysis
|
||||||
- Enforce consistent naming conventions:
|
- Enforce consistent naming conventions:
|
||||||
- camelCase for variables and functions
|
- camelCase for variables and functions
|
||||||
|
|||||||
Reference in New Issue
Block a user