🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.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

3.0.0
latest
Source
npm
Version published
Weekly downloads
7
-12.5%
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

lego

FAQs

Package last updated on 30 Jun 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