1.0.0 • Published 6 years ago

tslint-config-replicated v1.0.0

Weekly downloads
9
License
Apache-2.0
Repository
github
Last release
6 years ago

tslint-config-replicated

npm version

This package uses TSLint to enforce Replicated's code style and provides a shared base configuration for our Typescript projects. We use this package in conjunction with Prettier for linting our projects.

We have two configurations in this package, listed below:

  • tslint-config-replicated
    • Provides base rules for Replicated Typescript projects.
  • tslint-config-replicated/react
    • Provides base and React rules for Replicated Typescript/React projects.

Install

yarn

yarn add --dev tslint-config-replicated tslint

npm

npm install --save-dev tslint-config-replicated tslint

Usage

  1. Add "extends": "tslint-config-replicated" to your tslint.json.
  2. Add a .prettierrc with the following configuration:
{
    "printWidth": 80,
    "tabWidth": 2,
    "parser": "typescript",
    "trailingComma": "es5"
}

Resources