mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Merge pull request #32391 from rscrivens/master
[Sarif] Add Types for Version 2.0.0-csd.2.beta-2018-10-10
This commit is contained in:
Vendored
+1591
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,18 @@
|
||||
import * as sarif from "sarif";
|
||||
const input = `{
|
||||
"version": "2.0.0",
|
||||
"runs": [
|
||||
{
|
||||
"tool": {
|
||||
"name": "CodeScanner",
|
||||
"semanticVersion": "2.1.0"
|
||||
},
|
||||
"results": [
|
||||
]
|
||||
}
|
||||
]
|
||||
}`;
|
||||
const log = JSON.parse("") as sarif.Log;
|
||||
if (log.runs[0].tool.name !== "CodeScanner") {
|
||||
throw new Error("error: Tool name does not match");
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"sarif-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user