tslint-config-storytel

TypeScript configuration rules

Usage no npm install needed!

<script type="module">
  import tslintConfigStorytel from 'https://cdn.skypack.dev/tslint-config-storytel';
</script>

README

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.