-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Implement strict mode #453
Changes from all commits
6e30522
9b96923
742c19e
d40b031
68452b1
c4948a5
1c2c688
2b2ec3a
fa00df0
589cfb4
681a87c
ce6b612
c072d6f
3284359
a8c8aa8
d294937
6f733a1
295e6bd
898718f
e9364c2
eb7a354
2644bf1
0429cb1
79cd16a
eef15e6
158ae3b
77a7a90
f8ebcd6
1e36fdb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
- script: echo '##vso[task.prependpath]$(HOME)/.deno/bin/' | ||
- script: npx eslint **/*.ts --max-warnings=0 | ||
- script: deno run --allow-run --allow-write --allow-read format.ts --check | ||
- script: deno run --allow-run --allow-net --allow-write --allow-read test.ts | ||
- script: deno run --allow-run --allow-net --allow-write --allow-read --config=tsconfig.test.json test.ts | ||
|
||
- job: "Mac" | ||
pool: | ||
|
@@ -26,7 +26,7 @@ jobs: | |
- script: echo '##vso[task.prependpath]$(HOME)/.deno/bin/' | ||
- script: eslint **/*.ts --max-warnings=0 | ||
- script: deno run --allow-run --allow-write --allow-read format.ts --check | ||
- script: deno run --allow-run --allow-net --allow-write --allow-read test.ts | ||
- script: deno run --allow-run --allow-net --allow-write --allow-read --config=tsconfig.test.json test.ts | ||
|
||
- job: "Windows" | ||
pool: | ||
|
@@ -37,4 +37,4 @@ jobs: | |
- bash: echo "##vso[task.prependpath]C:\Users\VssAdministrator\.deno\\bin" | ||
- bash: npx eslint **/*.ts --max-warnings=0 | ||
- bash: deno.exe run --allow-run --allow-write --allow-read format.ts --check | ||
- bash: deno.exe run --allow-run --allow-net --allow-write --allow-read test.ts | ||
- bash: deno.exe run --allow-run --allow-net --allow-write --allow-read --config=tsconfig.test.json test.ts | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is the --config flag being added here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well I tried using strict mode in linter but it was not making any difference. So I explicitly tell Deno's TS compiler to use strict mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to de-dup these commands at some point...
Probably we should try to copy how Tokio uses Azure Pipelines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely, I'll do that in followup PR