tslint-config-replicated

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i tslint-config-replicated

Weekly Downloads

2

Version

1.0.0

License

Apache-2.0

Unpacked Size

49.1 kB

Total Files

12

Last publish

Collaborators

  • jdewinne
  • st0rmzrepl
  • alicenstar
  • emosbaugh
  • replicatedhq-user