Skip to content
This repository was archived by the owner on Jun 5, 2023. It is now read-only.

Coding Guidelines

Valentin Gavran edited this page May 23, 2022 · 4 revisions

Import nothing using the absolute path

❌

import { RIPPLE } from 'libs/anglify/src/composables/ripple/ripple.provider.ts';

✅

import { RIPPLE } from '../../composables/ripple/ripple.provider';

Export all typescript files of the module in the index.ts (except test files)

❌

export * from './modules/chip/chip-settings.token';
export * from './modules/chip/chip.interface';
export * from './modules/chip/chip.component';
// module not exported

✅

export * from './modules/chip/chip-settings.token';
export * from './modules/chip/chip.interface';
export * from './modules/chip/chip.component';
export * from './modules/chip/chip.module';

Key CSS definitions must be configurable via Custom CSS Properties

All texts must use the global typography

_variables.scss must not contain any comments