Skip to content

use boilerplate for typescript with coding standards and conventions in relation to the bus driver problem https://dzone.com/articles/java-code-challenge-bus-gossip

Notifications You must be signed in to change notification settings

AidenFaulconer/aiden-bus-driver

Repository files navigation

typescript-seed

An auto-updating, opinionated TypeScript seed project. All killer, no filler.

CI Status

What's in the box?

  • TypeScript, with all strictness compiler options enabled
  • ESLint, with an opinionated set of plugins and rules pre-configured for safety
  • Prettier
  • type-coverage, in strict mode with 100% type coverage enforced (do try to keep this as high as you can)
  • Jest, with 100% test coverage enforced (do try to keep this as high as you can)
  • Stryker, with 100% mutation score (do try to keep this as high as you can)
  • A Husky pre-commit hook that runs all of the above

Some notes on security

  • We enforce the lockfile by using npm ci, not npm install (see https://snyk.io/blog/ten-npm-security-best-practices/)
  • We use --ignore-scripts to minimize the attack surface (see https://snyk.io/blog/ten-npm-security-best-practices/)
  • We use npm audit to detect known vulnerabilities in our dependencies (point 9 from the OWASP Top 10)
  • We set "private": true in package.json to prevent accidental publishing
  • We keep our type coverage, test coverage and mutation scores as high as practical to help ensure our code is bulletproof
  • We use Dependabot to keep dependencies up-to-date
  • We use static analysis services (DeepCode and Snyk) to detect insecure or suspicious coding patterns in our own code.

If you intend to use this seed in a context where those services (GitHub Actions, Dependabot, DeepCode, Snyk, etc) are not available, we encourage you to find a way to achieve the same security goals in your context. This might involve on-prem services like Jenkins, SonarQube and Renovate.

About

use boilerplate for typescript with coding standards and conventions in relation to the bus driver problem https://dzone.com/articles/java-code-challenge-bus-gossip

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published