aboutsummaryrefslogtreecommitdiff
path: root/src/formats.ts
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2021-09-25 17:33:23 +0000
committerKevin J Hoerr <kjhoerr@protonmail.com>2021-09-25 17:33:23 +0000
commit283c3f14760c925fe9bf51a2db6f2d567dedb4fe (patch)
treee3617b15b1493788bbf37f957be81aacac4ffdf6 /src/formats.ts
parentdd829249122948fd66dd885dbd39a0cd9167118d (diff)
downloadao-coverage-283c3f14760c925fe9bf51a2db6f2d567dedb4fe.tar.gz
ao-coverage-283c3f14760c925fe9bf51a2db6f2d567dedb4fe.tar.bz2
ao-coverage-283c3f14760c925fe9bf51a2db6f2d567dedb4fe.zip
Add lint check to pipeline
Diffstat (limited to 'src/formats.ts')
-rw-r--r--src/formats.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/formats.ts b/src/formats.ts
index db13fa6..ff24061 100644
--- a/src/formats.ts
+++ b/src/formats.ts
@@ -75,7 +75,7 @@ const FormatsObj: FormatObj = {
return (100 * covered) / coverable;
},
matchColor: defaultColorMatches,
- fileName: "index.html"
+ fileName: "index.html",
},
cobertura: {
parseCoverage: async (contents: string): Promise<CoverageResult> => {
@@ -98,17 +98,17 @@ const FormatsObj: FormatObj = {
}
},
matchColor: defaultColorMatches,
- fileName: "index.xml"
- }
+ fileName: "index.xml",
+ },
},
- listFormats: function() {
+ listFormats: function () {
return Object.keys(this.formats);
},
- getFormat: function(format: string) {
+ getFormat: function (format: string) {
return this.formats[format];
- }
+ },
};
export default FormatsObj;