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

tslint-config-blvd

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tslint-config-blvd

A TSLint config that conforms to the blvd TypeScript styleguide.

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
249
decreased by-35.16%
Maintainers
3
Weekly downloads
 
Created
Source

tslint-config-blvd

✨ A TSLint config that conforms to the blvd TypeScript styleguide.

Installation

Install tslint and tslint-config-blvd using yarn:

yarn add --dev tslint tslint-config-blvd

or, for npm:

npm install --save-dev tslint tslint-config-blvd

Usage

In your tsconfig.json file, extend tslint-config-blvd.

{
  "extends": "tslint-config-blvd"
}

React rules

We've also included a separate config for React projects. In your tsconfig.json file, extend tslint-config-blvd/react.

{
  "extends": ["tslint-config-blvd/react"]
}

Prettier

Prettier is an automated code formatter for JavaScript, TypeScript, and other languages.

This TSLint config works alongside Prettier, too. To use it, install Prettier as well as tslint-config-prettier to your project.

yarn add --dev prettier tslint-config-prettier

Create a .prettierrc file. Then add the following configs. This should make Prettier automatically format your code based on the blvd guidelines.

{
  "semi": false,
  "tabWidth": 2,
  "printWidth": 140,
  "singleQuote": true,
  "trailingComma": "none"
}

Then include tslint-config-prettier in your project. IMPORTANT: You must add tslint-config-prettier last in the extends array!

{
  "extends": ["tslint-config-blvd/react", "tslint-config-prettier"]
}

Keywords

FAQs

Package last updated on 06 Sep 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