npm

Need private packages and team management tools?Check out npm Orgs. »

@hellroot/tslint-config

1.0.2 • Public • Published

@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}'

install

npm i @hellroot/tslint-config

Downloadsweekly downloads

2

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability