Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

custom-tslint-formatters

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

custom-tslint-formatters - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

.vscode/settings.json

6

formatters/groupedFormatter.js

@@ -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"
]
}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc