Skip to content

Commit

Permalink
test: add tsc static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-longmore-tessella committed Mar 25, 2021
1 parent 70d2824 commit bb41831
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.iml
.DS_Store
.idea/
ts-build

docs/book/
docs/src/version.md
Expand Down
21 changes: 21 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": "2.0.0",
"tasks": [
{
"runOptions": {
"runOn": "folderOpen"
},
"type": "typescript",
"tsconfig": "code/workspaces/tsconfig.json",
"option": "watch",
"problemMatcher": [
"$tsc-watch"
],
"group": {
"kind": "build",
"isDefault": true
},
"label": "tsc static analysis"
}
]
}
29 changes: 29 additions & 0 deletions code/workspaces/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
// vscode:
// There is a build task in .vscode/tasks.json which will run tsc in watch mode and report problems.
// To enable the task to run automatically, run the command 'Tasks: Manage Automatic Tasks in Folder', and allow.
// To stop the task, go to Terminal > Task - tsc static analysis and press ctrl-c.
"compilerOptions": {
"outDir": "./ts-build",
"composite": true,
"allowJs": true,
"checkJs": true,
"jsx": "preserve",
"target": "es2019",
"strict": true,
"noImplicitAny": false,
"noImplicitThis": false,
"esModuleInterop": true,
"moduleResolution": "node",
"resolveJsonModule": true
},
"include": [
"./*/src/**/*"
],
"exclude": [
"**/node_modules",
"**/*.spec.js",
"**/__mocks__",
"**/*.min.js"
]
}

0 comments on commit bb41831

Please sign in to comment.