Socket
Book a DemoInstallSign in
Socket

tslint-config-mailonline

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tslint-config-mailonline

TSLint config for MailOnline

latest
Source
npmnpm
Version
4.0.0
Version published
Maintainers
2
Created
Source

tslint-config-mailonline

NPM version Travis build status

MailOnline TSLint configuration.

Usage

Add tslint-config-mailonline, tslint, typescript, and prettier as development dependencies:

yarn add --dev tslint-config-mailonline tslint typescript prettier

Create TSLint configuration file (tslint.json) that extends tslint-config-mailonline:

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

Create prettier.config.js on the root of your project with these contents:

module.exports = require('tslint-config-mailonline/prettier');

Add the following script command to your package.json:

{
  "lint:prettier": "prettier --ignore-path .gitignore --write './**/*.{js,jsx,ts,tsx}'",
  "lint:tslint": "tslint './**/*.{js,jsx,ts,tsx}' -t verbose",
  "lint": "yarn run lint:prettier && yarn run lint:tslint"
}

Extended configs

The package also has separate entry points for some environments. Simply extend from the entry point as described below

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

react

{
  "extends": "tslint-config-mailonline/react"
}

Breaking changes

Any changes to this package that might cause code using it to not validate anymore, will be a semver-major change.

Keywords

tslint

FAQs

Package last updated on 18 Apr 2019

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