@hellroot/tslint-config
v1.0.2
Published
TSLint config rule set
Downloads
2
Maintainers
Readme
@hellroot/tslint-config
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}'