Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tslint-sane

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tslint-sane

A sane [tslint](https://palantir.github.io/tslint/) config, that attempts to provide only rules that will reduce bugs, not try and force a code style.

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

tslint-sane

A sane tslint config, that attempts to provide only rules that will reduce bugs, not try and force a code style.

Install

  1. Install with:

    npm i tslint-sane
    

    or using yarn

    yarn add tslint-sane
    
  2. Then in your tslint config, set the extends property to tslint-sane.

    Examples:

    tslint.json

    {
      "extends": "tslint-sane",
      "rules": {
         // your custom rules
      }
    }
    

    tslint.yaml

    extends: tslint-sane
    rules:
      # your custom rules
    

Opinionated Version

Alongside the base settings, there is an opinionated rule-set that adds in rules for styling. To use it, simply extend tslint-sane/opinionated instead of tslint-sane.

Rules

The yaml files in the repository are commented throughout so you can easily see which rules are applied and what they do. Some of the rules won't have any effect unless you specify a project (via the -p/--project flag) to the tslint cli:

tslint --project ./path/to/tsconfig.json

or

tslint -p ./path/to/tsconfig.json

FAQs

Package last updated on 24 Apr 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc