UNPKG

2.26 kBMarkdownView Raw
1# tslint-config-prettier
2
3[![npm](https://img.shields.io/npm/v/tslint-config-prettier.svg)](https://www.npmjs.com/package/tslint-config-prettier)
4[![Travis](https://img.shields.io/travis/alexjoverm/tslint-config-prettier.svg)](https://travis-ci.org/alexjoverm/tslint-config-prettier)
5[![downloads](https://img.shields.io/npm/dm/tslint-config-prettier.svg)](https://www.npmjs.com/package/tslint-config-prettier)
6[![David](https://img.shields.io/david/alexjoverm/tslint-config-prettier.svg)]()
7[![David](https://img.shields.io/david/dev/alexjoverm/tslint-config-prettier.svg)]()
8
9<h3> :cop: tslint + :nail_care: prettier = :heart_eyes: </h3>
10
11Do you wanna use [tslint](https://palantir.github.io/tslint/) and [prettier](https://github.com/prettier/prettier) without conflicts? tslint-config-prettier disables all conflicting rules that may cause such problems. Prettier takes care of formatting and tslint the rest.
12
13### Get started
14
15```bash
16npm install -D tslint-config-prettier
17```
18
19Make sure you've already set up [tslint](https://palantir.github.io/tslint/) and [prettier](https://github.com/prettier/prettier).
20
21Then, extend your `tslint.json`, and make sure `tslint-config-prettier` is **at the end**:
22
23```json
24{
25 "extends": [
26 "tslint:latest",
27 "tslint-config-prettier"
28 ]
29}
30```
31
32### More configuration
33
34`tslint-config-prettier` also turns off formatting rules from [tslint-react](https://github.com/palantir/tslint-react) and [tslint-eslint-rules](https://github.com/buzinas/tslint-eslint-rules), so you can use them safely.
35
36```json
37{
38 "extends": [
39 "tslint:latest",
40 "tslint-react",
41 "tslint-eslint-rules",
42 "tslint-config-prettier"
43 ]
44}
45```
46
47
48### Contributing
49
50```bash
51# Fork repo
52git clone https://github.com/YOUR-USERNAME/tslint-config-prettier
53npm install
54```
55
56This project uses [semantic-release](https://github.com/semantic-release/semantic-release) to keep a clean CI/CD pipe.
57
58So, you only will be required to follow [conventional-commit](https://github.com/commitizen/conventional-commit-types) messages. Everything else happens magically.
59
60### Credits
61
62Made with :heart: by [@alexjoverm](https://twitter.com/alexjoverm) and all its [contributors](https://github.com/alexjoverm/tslint-config-prettier/graphs/contributors)