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.
yarn add --dev tslint-config-videoamp tslint
npm install --save-dev tslint-config-videoamp tslint
- Add
"extends": "tslint-config-videoamp"
to yourtslint.json
. - Add a
.prettierrc
with the following configuration:
{
"printWidth": 120,
"tabWidth": 4,
"parser": "typescript",
"trailingComma": "es5"
}
- 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.