@blockone/tslint-config-blockone

ts-lint config for use in Block.one projects

Usage no npm install needed!

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

README

tslint-config-blockone

Block.one ts linting configuration

Run the following to get started

npm

> npm install --save-dev tslint
> npm install --save-dev @blockone/tslint-config-blockone

yarn

> yarn add --dev tslint
> yarn add --dev @blockone/tslint-config-blockone

Add the following to your .tslintrc or .tslint.json

{
  "extends": [
    "@blockone/tslint-config-blockone/tslint-config"
  ]
}

Add a script to your package.json for linting

{
  "scripts": {
    "lint" : "tslint -c tslint.json -p tsconfig.json"
  }
}