Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Storytel/tslint-config-storytel

Repository files navigation

TSLint configuration for Storytel

Storytel coding conventions for TypeScript projects. Linting with TSLint.

Getting started

Save the configuration

yarn add tslint-config-storytel

or

npm install --save-dev tslint-config-storytel

Create your tslint.json:

{
  "extends": [
    "tslint-config-storytel"
  ]
}

And start linting (edit folders as appropriate):

tslint 'src/**/*.ts?(x)'

Pro-tip

If you're adding this to an existing project, chances are there will be a lot of linting errors. Let tslint fix what it can for you:

tslint --fix 'src/**/*.ts?(x)'

Inspect the changes (git diff) it made. Never trust anything.

It wont fix everything, but it will get you a bit on your way.