Gathering detailed insights and metrics for tslint-config-prettier
Gathering detailed insights and metrics for tslint-config-prettier
Gathering detailed insights and metrics for tslint-config-prettier
Gathering detailed insights and metrics for tslint-config-prettier
Use TSLint with Prettier without any conflict
npm install tslint-config-prettier
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.3
Supply Chain
97.3
Quality
75.7
Maintenance
100
Vulnerability
100
License
TypeScript (99.23%)
JavaScript (0.77%)
Total Downloads
169,851,700
Last Day
48,900
Last Week
331,028
Last Month
1,989,517
Last Year
18,806,697
1,232 Stars
396 Commits
42 Forks
13 Watching
25 Branches
41 Contributors
Latest Version
1.18.0
Package Id
tslint-config-prettier@1.18.0
Size
4.21 kB
NPM Version
6.4.1
Node Version
11.9.0
Publised On
04 Feb 2019
Cumulative downloads
Total Downloads
Last day
-17.1%
48,900
Compared to previous day
Last week
-5.3%
331,028
Compared to previous week
Last month
-28.9%
1,989,517
Compared to previous month
Last year
-9.5%
18,806,697
Compared to previous year
26
Do you want to use TSLint and Prettier without conflicts? tslint-config-prettier
disables all conflicting rules that may cause such problems. Prettier takes care of the formatting whereas tslint takes care of all the other things.
Check how it works in this tutorial.
1yarn add --dev tslint-config-prettier 2# or 3npm install --save-dev tslint-config-prettier
Make sure you've already set up TSLint and Prettier.
Then, extend your tslint.json
, and make sure tslint-config-prettier
is at the end:
1{ 2 "extends": [ 3 "tslint:latest", 4 "tslint-config-prettier" 5 ] 6}
tslint-config-prettier
also turns off formatting rules from the following rulesets, so you can use them safely.
1{ 2 "extends": [ 3 "tslint:latest", 4 "tslint-react", 5 "tslint-eslint-rules", 6 "tslint-config-prettier" 7 ] 8}
tslint-config-prettier
is shipped with a little CLI tool to help you check if your configuration contains any rules that are in conflict with Prettier. (require tslint
installed)
In order to execute the CLI tool, first add a script for it to package.json
:
1{ 2 "scripts": { 3 "tslint-check": "tslint-config-prettier-check ./tslint.json" 4 } 5}
Then run yarn tslint-check
or npm run tslint-check
.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Made with :heart: by @alexjoverm and all its contributors
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
61 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More