custom-tslint-formatters
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -38,7 +38,9 @@ "use strict"; | ||
var failuresByFile = this.groupByFile(failures); | ||
return Object.keys(failuresByFile).reduce(function (lines, fileName) { | ||
return Object.keys(failuresByFile) | ||
.reduce(function (lines, fileName) { | ||
lines.push(chalk.underline.yellow(fileName)); | ||
var fileFailures = failuresByFile[fileName]; | ||
return lines.concat(fileFailures.map(_this.formatFailure), ['\n']); | ||
}, []).join('\n'); | ||
}, []) | ||
.join('\n'); | ||
}; | ||
@@ -45,0 +47,0 @@ return Formatter; |
@@ -25,3 +25,4 @@ "use strict"; | ||
var ruleName = failure.getRuleName(); | ||
return "[tslint] " + fileName + ":" + (line + 1) + ":" + (character + 1) + ": " + message + " (" + ruleName + ")"; | ||
return "[tslint] " + fileName + ":" + (line + 1) + ":" + (character + | ||
1) + ": " + message + " (" + ruleName + ")"; | ||
}; | ||
@@ -28,0 +29,0 @@ Formatter.prototype.format = function (failures) { |
{ | ||
"name": "custom-tslint-formatters", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Custom formatters for TSLint.", | ||
@@ -10,4 +10,6 @@ "main": "index.js", | ||
"dev": "npm run build -- -w", | ||
"format": "prettier --single-quote --trailing-comma es5 --no-bracket-spacing --parser typescript --write 'formatters/*.ts'", | ||
"lint:grouped": "tslint -s formatters -t grouped test/*.ts", | ||
"lint:vscode": "tslint -s formatters -t vscode test/*.ts", | ||
"precommit": "lint-staged", | ||
"prepublish": "npm run build" | ||
@@ -33,2 +35,6 @@ }, | ||
"devDependencies": { | ||
"@types/chalk": "^0.4.31", | ||
"@types/node": "^7.0.12", | ||
"lint-staged": "^4.0.2", | ||
"prettier": "^1.5.3", | ||
"tslint": "^5.0.0", | ||
@@ -38,6 +44,12 @@ "typescript": "^2.2.2" | ||
"dependencies": { | ||
"@types/chalk": "^0.4.31", | ||
"@types/node": "^7.0.12", | ||
"chalk": "^1.1.3" | ||
}, | ||
"lint-staged": { | ||
"linters": { | ||
"formatters/*.ts": [ | ||
"prettier --single-quote --trailing-comma es5 --no-bracket-spacing --parser typescript --write", | ||
"git add" | ||
] | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
162001
2
8
90
6
- Removed@types/chalk@^0.4.31
- Removed@types/node@^7.0.12
- Removed@types/chalk@0.4.31(transitive)
- Removed@types/node@7.10.14(transitive)