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

Package Sidebar

Install

npm i @hellroot/tslint-config

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

4.08 kB

Total Files

4

Last publish

Collaborators

  • evgenymarkov