New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-tsc

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-tsc - npm Package Compare versions

Comparing version 1.0.6 to 1.1.0

12

CHANGELOG.md

@@ -0,1 +1,13 @@

<a name="1.1.0"></a>
# [1.1.0](https://github.com/unlight/eslint-plugin-tsc/compare/v1.0.6...v1.1.0) (2018-07-02)
### Build
* Increased timeout ([d88cfc4d88832352f5ea07ffac1ef77baa493534](https://github.com/unlight/eslint-plugin-tsc/commit/d88cfc4d88832352f5ea07ffac1ef77baa493534))
### Update
* Externalize typescript service ([4c3e8358cb35145b07cc72ae4f85f8f528b2a9f7](https://github.com/unlight/eslint-plugin-tsc/commit/4c3e8358cb35145b07cc72ae4f85f8f528b2a9f7))
<a name="1.0.6"></a>

@@ -2,0 +14,0 @@ ## [1.0.6](https://github.com/unlight/eslint-plugin-tsc/compare/v1.0.5...v1.0.6) (2018-06-17)

4

dist/config.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ts = require("typescript");
const service_1 = require("./service");
const typescript_service_1 = require("typescript-service");
let service;

@@ -9,3 +9,3 @@ function create(context) {

if (!service) {
service = service_1.createService({ compilerOptions, configFile });
service = typescript_service_1.createService({ compilerOptions, configFile });
}

@@ -12,0 +12,0 @@ const fileName = context.getFilename();

{
"name": "eslint-plugin-tsc",
"version": "1.0.6",
"version": "1.1.0",
"license": "MIT",

@@ -9,6 +9,5 @@ "description": "eslint-plugin-tsc",

"scripts": {
"t": "npm run mocha -- src/*.spec.ts",
"test": "npm run eslint && npm run tscheck && npm run t",
"test": "npm run eslint && npm run tscheck && npm run test:r",
"test:r": "npm run mocha -- src/*.spec.ts",
"mocha": "node -r ts-node/register/transpile-only node_modules/mocha/bin/_mocha",
"mocha": "node -r ts-node/register/transpile-only node_modules/mocha/bin/_mocha --timeout 5000",
"test:w": "npm run mocha -- --watch-extensions ts --watch src/**/*.spec.ts",

@@ -31,3 +30,4 @@ "test:d": "node --inspect-brk -r ts-node/register/transpile-only node_modules/mocha/bin/_mocha --no-timeouts src/**/*.spec.ts",

"dependencies": {
"1-liners": "^0.4.0"
"1-liners": "^0.4.0",
"typescript-service": "^1.0.0"
},

@@ -34,0 +34,0 @@ "devDependencies": {

import * as ts from 'typescript';
import { Rule } from 'eslint';
import { createService } from './service';
import { createService } from 'typescript-service';
import noop = require('1-liners/noop');

@@ -5,0 +5,0 @@

@@ -15,2 +15,4 @@ import { rules } from './index';

const root = process.cwd();
ruleTester.run('tests', rules.config as any, {

@@ -30,32 +32,7 @@ invalid: [

{
filename: resolve('test-project/number.ts'),
code: readFileSync('test-project/number.ts').toString(),
options: [{ configFile: 'test-project/tsconfig.json' }],
},
{
filename: resolve('test-project/builtin.ts'),
code: readFileSync('test-project/builtin.ts').toString(),
options: [{ configFile: 'test-project/tsconfig.json' }],
},
{
filename: resolve('test-project/types.ts'),
code: readFileSync('test-project/types.ts').toString(),
options: [{ configFile: 'test-project/tsconfig.json' }],
},
{
filename: resolve('test-project/decorator.ts'),
code: readFileSync('test-project/decorator.ts').toString(),
options: [{ configFile: 'test-project/tsconfig.json' }],
},
{
filename: resolve('test-project/global-types.ts'),
code: readFileSync('test-project/global-types.ts').toString(),
options: [{ configFile: 'test-project/tsconfig.json' }],
},
{
filename: resolve('test-project/date.ts'),
code: readFileSync('test-project/date.ts').toString(),
options: [{ configFile: 'test-project/tsconfig-nolibs.json' }],
},
filename: resolve('test-project/source.ts'),
code: readFileSync('test-project/source.ts').toString(),
options: [{ configFile: `${root}/test-project/tsconfig.json` }],
}
],
});

Sorry, the diff of this file is not supported yet

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