JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q38747F
  • License MIT

Opinionated code style for TypeScript

Package Exports

  • standardts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (standardts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

StandardTS

Opinionated code style for TypeScript based on StandardJS.

npm install standardts -g

Currently supported

  • no semicolons
  • single quotes
  • use spaces for indent
  • no unused variables
  • use always === (only == null check allowed)
  • parameters named err or error must always be handled

Usage

standardts <files...> [--fix]

standardts by default will run linting on every ts or tsx file in the current working directory (omitting node_modules and typings)

Missing core rules

TSlint rules created thanks to this project:

  • handle-callback-err

Development

Package is under heavy development. Community input is appreciated.