General Rules
All files in a Figentra project usekebab-case. The specific suffix you append identifies what role a file plays:
- TypeScript source files use the plain
.tsextension:my-module.ts - Unit test files append
.test.ts:my-module.test.ts - Integration and end-to-end test files append
.spec.ts:my-module.spec.ts - Index / barrel export files are always named
index.tsand form the public API of a package - Type definition files append
.types.ts:my-module.types.ts - Configuration files append
.config.ts:my-config.config.ts
File Type Reference
Use the table below as a quick reference when creating new files:What to Avoid
Class and Interface Files
When a file exports a single class or interface, derive the filename from the exported identifier by converting it to kebab-case. The mapping is always one-to-one, so readers can locate the definition without searching.user-service.ts