osequi / test-ts-deno

Typescript style guide with Deno

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

test-ds-deno

Typescript style guide with Deno

See https://deno.land/manual@v1.6.3/contributing/style_guide

Copyright

// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.

Tests

Every module has to have a test.

Underscores

modular_scale.ts vs modular-scale.ts

Modules, not packages

Use the term "module" instead of "library" or "package".

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

Top level functions should not use arrow syntax.

About

Typescript style guide with Deno


Languages

Language:TypeScript 100.0%