New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@verticalstrategy/tslint-config

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@verticalstrategy/tslint-config

TSLint configurations used by us in Rise, we thought you might love them too.

1.0.0-alpha.1
latest
npm
Version published
Weekly downloads
0
-100%
Maintainers
3
Weekly downloads
 
Created
Source

@risedigital/tslint-config

TSLint configurations used by us in Rise, we thought you might love them too.

Setup

Quick one-liner (install & configuration)

Installs @verticalstrategy/tslint-config plus dependencies, and sets up the default tslint.json (Warning: this will overwrite an existing tslint.json)

yarn add --dev @verticalstrategy/tslint-config && \
printf '%s\n  %s\n%s' \
"{" \
"\"extends\": \"@verticalstrategy/tslint-config\"" \
"}" \
> tslint.json

Install

yarn add --dev @verticalstrategy/tslint-config

This installs the necessary packages: tslint, prettier etc...

Configuration

Any overwrting of rules, is done in the normal tslint way.

Current supported packages

By default standard & prettier is included in the config.

  • Config is extended with React support (tslint-react), if package.json includes react

Editor integration setup

Generally we want the editor to lint (run tslint) while typing, and fix errors (e.g. run tslint --fix) on save. Here are some extensions/packages for various editors (please extend with you favorite editor):

Visual Studio Code

TSLint extension

Use/add the following configuration in your User Settings:

{
  "tslint.autoFixOnSave": true,
  "[typescript]": {
    "editor.formatOnSave": false,
  },
  "[typescriptreact]": {
    "editor.formatOnSave": false,
  },
}

FAQs

Package last updated on 17 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts