Socket
Book a DemoInstallSign in
Socket

@zaiusinc/tslint-presets

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zaiusinc/tslint-presets

Zaius preferred TSLint rules

1.2.0
latest
Source
npmnpm
Version published
Weekly downloads
473
115.98%
Maintainers
3
Weekly downloads
 
Created
Source

Zaius TSLint Presets

This NPM package includes Zaius's preferred TSLint rules for Node and React projects.

Installation

Install the package as a dev dependency using yarn or npm.

# yarn:
yarn add -D @zaiusinc/tslint-presets

# npm:
npm install -D @zaiusinc/tslint-presets

Usage

After adding the package to your project, create or update your tslint.json file in the root of your project and extend the desired preset. For Node projects:

{
  "extends": "@zaiusinc/tslint-presets/node.json",
  "rules": {}
}

and for React projects:

{
  "extends": "@zaiusinc/tslint-presets/react.json",
  "rules": {}
}

Best Practices and Overrides

Certain projects may need overrides to the presets. Overrides or additional rules can be added to the rules object.

Please try to minimize overrides! For one-off situtations you can ignore a single line with:

// tslint:disable-next-line:rule-name

Start a discussion if you believe a change should be made to the preset for all projects.

FAQs

Package last updated on 08 Dec 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.