tslint-config-videoamp
v1.0.4
Published
VideoAmp's TSLint/Prettier config for Typescript projects
Downloads
54
Keywords
Readme
tslint-config-videoamp
This package uses TSLint to enforce VideoAmp'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-videoamp
- Provides base rules for VideoAmp Typescript projects.
tslint-config-videoamp/react
- Provides base and React rules for VideoAmp Typescript/React projects.
Install
yarn
yarn add --dev tslint-config-videoamp tslint
npm
npm install --save-dev tslint-config-videoamp tslint
Usage
- Add
"extends": "tslint-config-videoamp"
to yourtslint.json
. - Add a
.prettierrc
with the following configuration:
{
"printWidth": 120,
"tabWidth": 4,
"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.