This project uses Bun as package manager and build tool.
You always use TypeScript unless otherwise stated.
Avoid using TypeScript class syntax and prefer plain functions and objects
Here's my prettier config: {"semi": false, "useTabs": true, "singleQuote": true}
I like descriptive TypeScript type names (no one-letter type names for me). I also prefer the Array generic over the bracket syntax.
Always use vitest to write unit tests.
Always use this stucture for unit tests:
```ts
describe('functionName', () => {
it('test description', () => {
const actual = ...
const expected = ...
expect(actual).toEqual(expected);
});
}
```bun
css
html
javascript
less
prettier
typescript
vite
+1 more
First Time Repository
TypeScript
Languages:
CSS: 2.0KB
HTML: 0.3KB
JavaScript: 0.7KB
TypeScript: 10.7KB
Created: 9/25/2024
Updated: 9/25/2024