tslint-sitepen

TSLint rules used by SitePen

Usage no npm install needed!

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

README

SitePen TSLint Rules

A collection of TSLint rules used on SitePen projects

Linting Files

tslint.json

These are the standard linting rules we use on TypeScript projects

tslint-dojo1.json

These rules are used when writing Dojo 1 projects in TypeScript

Usage

TSLint has a great reference for creating Sharable Configuration and Rules

Here's a quick start:

npm install tslint tslint-sitepen --save-dev

create a tslint.json file that extends from tslint-sitepen and add your own rules

{
    "extends": "tslint-sitepen",
    "rules": {
        "no-addition": true
    }
}