tslint-mango

0.1.12 • Public • Published

tslint-mango v0.1.12

TSLint preset

The recommended .prettierrc is included, but must be installed manually.

This preset extends the following presets (in order):

Rules

Here are the rules I use from each of the presets.

Unlisted presets have all of their rules used.

tslint-clean-code

  • "no-commented-out-code": true

tslint-react

These rules are described here.

  • "jsx-boolean-value": true
  • "jsx-curly-spacing": [true, "never"]
  • "jsx-equals-spacing": [true, "never"]
  • "jsx-self-close": true
  • "jsx-space-before-trailing-slash": true
  • "jsx-wrap-multiline": true

tslint-jasmine-rules

These rules are only warnings:

  • "no-focused-tests": true
  • "no-disabled-tests": true

tslint-etc

  • "no-unused-declaration": true

tslint-misc-rules

Custom rules

interface-member-separator

Enforce which character separates interface members.

Usage:

[true";"# semicolon 
[true","# comma 
[true""]  # none 

Has fixer? Yes

Readme

Keywords

none

Package Sidebar

Install

npm i tslint-mango

Weekly Downloads

5

Version

0.1.12

License

MIT

Unpacked Size

9.92 kB

Total Files

6

Last publish

Collaborators

  • aleclarson