@hellroot/tslint-config
TSLint config rule set
Last updated 7 months ago by evgenymarkov .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @hellroot/tslint-config 
SYNC missed versions from official npm registry.

@hellroot/tslint-config

npm dependencies status dev dependencies status code style: prettier

A TSLint config for projects written in TypeScript with React.

It is compatible with Prettier and consists of rules from:

Installation

npm install --save-dev prettier tslint @hellroot/tslint-config

Configuration

Extend your TSLint config:

tslint.json

{
  "extends": ["@hellroot/tslint-config"]
}

Configure EditorConfig:

.editorconfig

root = true

[*]
charset = utf-8
indent_size = 2
end_of_line = lf
indent_style = space
max_line_length = 100
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

Configure Prettier:

.prettierrc.json

{
  "singleQuote": true,
  "trailingComma": "none"
}

Migration

Format all your TypeScript and JavaScript code:

npx prettier --write '**/*.{js,jsx,ts,tsx}'

Current Tags

  • 1.0.2                                ...           latest (7 months ago)

3 Versions

  • 1.0.2                                ...           7 months ago
  • 1.0.1                                ...           7 months ago
  • 1.0.0                                ...           7 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (3)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |