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

@aller/ts-config-aller

Package Overview
Dependencies
Maintainers
11
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aller/ts-config-aller

Aller Media's TypeScript project config

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
11
Weekly downloads
 
Created
Source

TypeScript Config Aller

License: MIT   NPM version

Aller Media's common configuration files for TypeScript projects. These include:

  • tsconfig.json -- the Compiler
  • tslint.js -- the Linter

Installation

Get started by running this command in the root of your project:

npm install --save-dev @aller/ts-config-aller
cp node_modules/@aller/ts-config-aller/tsconfig.example.json tsconfig.json
cp node_modules/@aller/ts-config-aller/tslint.example.json tslint.json

Setup

TypeScript Compiler

The tsc compiler expects a configuration file in the root directory of the project:

{
	"extends": "./node_modules/@aller/ts-config-aller/tsconfig.json",
	"files": [
		...
	],
	"include": [
		...
	],
	"compilerOptions": {
		"outDir": "dist"
	}
}

The sections files and include determine which files or locations will be picked up by the compiler. Please refer to the official documentation for detailed examples.

TSlint

The configuration for TSlint was originally taken from Reader Critics and then extended/modified with some of the rules that already have an equivalent in the ESlint configurations which are used in our department:

{
	"extends": "@aller/ts-config-aller"
}

Most of the rules are actually equal to those of Airbnb with the exception of a few which we found annoying. Additionally, we don't use custom rulesets.

License

Copyright © 2017 DB Medialab / Aller Media AS (Oslo, Norway)

Licensed under the MIT License.

Keywords

FAQs

Package last updated on 19 Dec 2017

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