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

@ssense/tslint-config

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ssense/tslint-config - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

.travis.yml

8

package.json
{
"name": "@ssense/tslint-config",
"version": "1.1.0",
"version": "1.1.1",
"description": "SSENSE's base TSLint configuration",

@@ -32,11 +32,5 @@ "main": "index.js",

"devDependencies": {
"ghooks": "1.*",
"tslint": "3.14.*",
"typescript": "1.8.10"
},
"config": {
"ghooks": {
"pre-commit": "npm test"
}
}
}
## tslint-config
[![npm version](https://badge.fury.io/js/%40ssense%2Ftslint-config.svg)](https://badge.fury.io/js/%40ssense%2Ftslint-config) [![Build Status](https://travis-ci.org/SSENSE/tslint-config.svg?branch=test_integration)](https://travis-ci.org/SSENSE/tslint-config)
The [tslint](http://palantir.github.io/tslint/) config we use at **SSENSE** for all TypeScript projects. It's a combination of base rules provided by tslint as well as rules from [tslint-microsoft-contrib](https://github.com/Microsoft/tslint-microsoft-contrib).

@@ -4,0 +6,0 @@

@@ -8,3 +8,3 @@ //my amazing app

public baz(): void {
public baz(): any {
return undefined;

@@ -11,0 +11,0 @@ }

@@ -8,3 +8,2 @@ const Linter = require('tslint');

const options = {
formatter: 'json',
configuration: {

@@ -20,5 +19,5 @@ rules: linterConfig.rules,

const expectedOutput = '[{"endPosition":{"character":16,"line":0,"position":16},"failure":"comment must start with a space","name":"test_app.ts","ruleName":"comment-format","startPosition":{"character":2,"line":0,"position":2}},{"endPosition":{"character":5,"line":10,"position":204},"failure":"The exported module or identifier name must match the file name. Found: test_app.ts and Foo","name":"test_app.ts","ruleName":"export-name","startPosition":{"character":4,"line":2,"position":38}},{"endPosition":{"character":18,"line":3,"position":83},"failure":"Method name does not match /^[a-z][\\\\w\\\\d]+$/: Bar","name":"test_app.ts","ruleName":"function-name","startPosition":{"character":15,"line":3,"position":80}},{"endPosition":{"character":18,"line":2,"position":52},"failure":"Use of default exports is forbidden","name":"test_app.ts","ruleName":"no-default-export","startPosition":{"character":11,"line":2,"position":45}},{"endPosition":{"character":1,"line":11,"position":206},"failure":"\'namespace\' and \'module\' are disallowed","name":"test_app.ts","ruleName":"no-namespace","startPosition":{"character":0,"line":1,"position":17}}]';
const expectedOutput = fs.readFileSync(__dirname + '/expected-output.txt').toString();
if (result.output !== expectedOutput) {
if (result.output.trim() !== expectedOutput.trim()) {
throw new Error(`Linter output did not match expected output. \nActual: ${result.output}\nExpected: ${expectedOutput}`);

@@ -25,0 +24,0 @@ } else {

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