eslint-plugin-tsc
Advanced tools
Comparing version 1.0.6 to 1.1.0
@@ -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) |
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
13212
2
11
150
1
+ Addedtypescript-service@^1.0.0
+ Addedtypescript-service@1.0.0(transitive)