# Style Guidelines

Rembrandt repositories are following [style guidelines and coding conventions](https://basarat.gitbooks.io/typescript/content/docs/styleguide/styleguide.html) from [Typescript Deep Dive](https://basarat.gitbooks.io/typescript/), a comprehensive Typescript book. In addition to these guidelines we enforce the following rules:

### Filenames

* Use `PascalCase.ts` for classes
* Use `camelCase.ts` for instances

> Reason: Default export for files is clear

**Class as default export**

**Bad**

```
export default class HelloWorld {}

helloWorld.ts
```

**Good**

```
export default class HelloWorld {}

HelloWorld.ts
```

**Instance as default export**

**Bad**

```
export default const helloWorld: string = 'Hello World!';

HelloWorld.ts
```

**Good**

```
export default const helloWorld: string = 'Hello World!';

helloWorld.ts
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rembrandt.gitbook.io/docs/contributing-1/style-guidelines.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
