From 278f4bd14b3fb19abd07e461c30ab2f495309982 Mon Sep 17 00:00:00 2001 From: yorkyao Date: Thu, 1 Nov 2018 15:34:45 +0800 Subject: [PATCH] fix: lint error, add badge in document --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5356e1a..8cb1022 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ This tool will check type of all identifiers, `the code coverage` = `the count o [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/github/plantain-00/type-coverage?branch=master&svg=true)](https://ci.appveyor.com/project/plantain-00/type-coverage/branch/master) [![npm version](https://badge.fury.io/js/type-coverage.svg)](https://badge.fury.io/js/type-coverage) [![Downloads](https://img.shields.io/npm/dm/type-coverage.svg)](https://www.npmjs.com/package/type-coverage) -![](https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Fplantain-00%2Ftype-coverage%2Fmaster%2Fpackage.json) +[![type-coverage](https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Fplantain-00%2Ftype-coverage%2Fmaster%2Fpackage.json)](https://github.com/plantain-00/type-coverage) ## install @@ -36,3 +36,11 @@ name | type | description "atLeast": 99 // same as --at-least }, ``` + +## add dynamic badges of type coverage + +Use your own project url: + +```md +[![type-coverage](https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Fplantain-00%2Ftype-coverage%2Fmaster%2Fpackage.json)](https://github.com/plantain-00/type-coverage) +```