Style Guidelines
Filenames
export default class HelloWorld {}
helloWorld.tsexport default class HelloWorld {}
HelloWorld.tsexport default const helloWorld: string = 'Hello World!';
HelloWorld.tsLast updated
Was this helpful?
Rembrandt repositories are following style guidelines and coding conventions from Typescript Deep Dive, a comprehensive Typescript book. In addition to these guidelines we enforce the following rules:
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.tsGood
export default class HelloWorld {}
HelloWorld.tsInstance as default export
Bad
export default const helloWorld: string = 'Hello World!';
HelloWorld.tsGood
Last updated
Was this helpful?
Was this helpful?
export default const helloWorld: string = 'Hello World!';
helloWorld.ts