Socket
Socket
Sign inDemoInstall

@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


Version published
Weekly downloads
20
increased by566.67%
Maintainers
2
Weekly downloads
 
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 06 Jan 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