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

@lego/tslint-config-prettier

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lego/tslint-config-prettier

LEGO shareable tslint config for ts projects

  • 1.17.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

@lego/tslint-config-prettier

Purpose

This is a stand-alone all-round configuration that inherits prettier configurations from @lego/prettier-config and is tailored towards usage with tslint.

If you want to use your own tslint ruleset without the other packages like @lego/tslint-config then you should install this package, otherwise refer to the aforementioned.

Installation

Install this config package:

npm i -D @lego/tslint-config-prettier

Usage

Extend your tslint.json, and make sure @lego/tslint-config-prettier is at the end:

{
  "extends": ["tslint:latest", "@lego/tslint-config-prettier"]
}

Rules

This package currently implements rules from the following tslint extensions:

  • https://github.com/prettier/tslint-config-prettier

Overriding Rules

With the above tslint.json configuration example, you can still use or override already defined rules as such:

{
  "extends": ["tslint:latest", "@lego/tslint-config-prettier"],
  "rules": {
    "prettier": [true, {
      "printWidth": 100,
      "semi": true,
      "singleQuote": true,
      "trailingComma": "es5",
      "arrowParens": "always",
      "proseWrap": "preserve"',
    }],
  }
}

Keywords

FAQs

Package last updated on 11 May 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

  • 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