Skip to content

dev-marlon/angular-tslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TSLint config for Angular TypeScript Style

The setup uses TSLint and codelyzer for code-style checks and prettier for code-formatting. The ruleset includes the recommended Angular code-style rules and additional rules.

Note: The following set of rules depend on:

  • TSLint ^v5.0.0
  • codelyzer ^v4.5.0

Installation

npm install git+https://github.com/dev-marlon/angular-tslint-config.git --save-dev

Setup

In tslint.json:

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

Usage

Check

ng lint

Fix autofixable code

ng lint --fix

TSLint IDE Support

Enable TSLint integration in PhpStorm to show errors in your code:
Languages & Frameworks > TypeScript > TSLint

Use alt + Enter shortcut on marked lines to autofix the errors.

About

TSLint config for Angular TypeScript Style

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •