Instruction file imported from caido-community/scanner (
.cursor/rules/misc.mdc). Copyright stays with the author.
Miscellaneous Conventions
- Use TypeScript for all files.
- Only use types, not interfaces.
- Do not use
anytype. - Use
undefinedovernull. - Do not add any comments to the code that you generate.
- Follow consistent naming conventions:
- Folders: camelCase (
intercept,replay,httpHistory). - Component folders: PascalCase (
PassiveFormCreate,PassiveTable). - All other files: camelCase (
useForm.ts,assistant.graphql).
- Folders: camelCase (
- Declare variables close to their usage:
- Avoid declaring all variables at the top of functions/files.
- Place variable declarations as close as possible to where they are first used.
- Group related variables together (e.g., event bus declarations next to their corresponding listeners).
- When refactoring, avoid creating alias types like this:
export type Options = ScanConfig;
Instead, actually rename the type and fix all occurences if needed.