Socket
Book a DemoInstallSign in
Socket

@detroit-labs/tslint-config

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@detroit-labs/tslint-config

Shared TSLint configuration used in Detroit Labs' TypeScript projects

2.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@detroit-labs/tslint-config

npm version Build Status semantic-release Sponsored by Detroit Labs

TSLint configurations used in Detroit Labs' TypeScript projects

Installation

$ yarn add @detroit-labs/tslint-config --dev

Usage

To use the lint configuration with the default preset, use configuration inheritance via the extends keyword. Here's a sample configuration where tslint.json lives adjacent to your node_modules folder:

{
  "extends": ["@detroit-labs/tslint-config"],
  "rules": {
    // override rules here
    "semicolon": false
  }
}

There are two primary configurations supplied for convenience:

  • @detroit-labs/tslint-config/react: contains extra configuration for a TypeScript React project
  • @detroit-labs/tslint-config/node: contains extra configuration for a Node server project

Usage is the same as above:

{
  "extends": ["@detroit-labs/tslint-config/react"],
  "rules": {
    // override rules here
    "semicolon": false
  }
}

To lint all TypeScript files in the src/ directory, for example, run tslint -c tslint.json 'src/**/*.{ts,tsx}'.

Development

Note

This project uses semantic-release for fully automated NPM package publishing. Instead of using git commit, please use yarn commit and follow the prompts for entering a conventional changelog message. This is crucial for letting tools manage package publishing and semantic versioning. :robot: Please see this blog post for a run through of the tooling used in this repo. If you are using GitHub Desktop to commit to this repo, please refer to the AngularJS Git Commit Message Conventions (or use the command-line to commit :nerd_face:).

Workflow

  • Install dependencies and commit hooks with yarn install
  • Make changes to the TSLint configuration(s)
  • Stage changes - git add .
  • Create a conventional commit - yarn commit
  • Push to GitHub and open a pull request

Changelog

See the GitHub release history.

Keywords

tslint

FAQs

Package last updated on 10 May 2017

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.