/test-ts-2

Typescript styleguide inspired by Deno

Primary LanguageTypeScript

test-ts-2

Typescript styleguide inspired by Deno.

See:

Prefer interfaces

Use type for enums

export type TBreakpointNames = "mobile" | "tablet" | "laptop" | "desktop";

export interface TBreakpoint {
  name: TBreakpointNames;
  value: number;
}

Exported functions (API): max 2 args, put the rest into an options object.

Don't use the arrow syntax

Use underscores, not dashes in filenames