tslint-config-replicated
v1.0.0
Published
Replicated's TSLint/Prettier config for Typescript projects
Downloads
72
Keywords
Readme
tslint-config-replicated
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
- Add
"extends": "tslint-config-replicated"
to yourtslint.json
. - Add a
.prettierrc
with the following configuration:
{
"printWidth": 80,
"tabWidth": 2,
"parser": "typescript",
"trailingComma": "es5"
}
Resources
- TSLint docs
- Prettier docs
tslint-consistent-codestyle
- TSLint rules to enforce consistent code style in TypeScript- ESLint rules for TSLint - Improve your TSLint with the missing ESLint Rules
tslint-microsoft-contrib
- A set of TSLint rules used on some Microsoft projectstslint-config-prettier
tslint-react
- Lint rules related to React & JSX.