[tslint] apply only-arrow-functions rule
diff --git a/src/goCover.ts b/src/goCover.ts
index 28bc822..dbc2a62 100644
--- a/src/goCover.ts
+++ b/src/goCover.ts
@@ -153,7 +153,7 @@
output: undefined
});
- lines.on('line', function(data: string) {
+ lines.on('line', (data: string) => {
// go test coverageprofile generates output:
// filename:StartLine.StartColumn,EndLine.EndColumn Hits CoverCount
// The first line will be "mode: set" which will be ignored
diff --git a/src/goPackages.ts b/src/goPackages.ts
index 7175b7d..a5c13fe 100644
--- a/src/goPackages.ts
+++ b/src/goPackages.ts
@@ -109,7 +109,7 @@
function getAllPackagesNoCache(workDir: string): Promise<Map<string, PackageInfo>> {
return new Promise<Map<string, PackageInfo>>((resolve, reject) => {
// Use subscription style to guard costly/long running invocation
- const callback = function(pkgMap: Map<string, PackageInfo>) {
+ const callback = (pkgMap: Map<string, PackageInfo>) => {
resolve(pkgMap);
};
diff --git a/tslint.json b/tslint.json
index 2a846de..25ce1ba 100644
--- a/tslint.json
+++ b/tslint.json
@@ -104,9 +104,9 @@
"check-whitespace"
],
"one-variable-per-declaration": { "options": ["ignore-for-loop"] },
- // "only-arrow-functions": {
- // "options": ["allow-declarations", "allow-named-functions"]
- // },
+ "only-arrow-functions": {
+ "options": ["allow-declarations", "allow-named-functions"]
+ },
"ordered-imports": {
"options": {
"import-sources-order": "case-insensitive",