mirror of
https://github.com/denoland/deno.git
synced 2025-09-22 10:22:34 +00:00
Changed tools/lint.py to lint the entire js and tests directories. (#900)
* Changed tools/lint.py to lint the entire js and tests directorys and sub directories, currently it was pointing at tsconfig and would only lint files that were part of js/main.ts or node_modules/typescript/lib/lib.esnext.d.ts and their dependencies * Broke the typescript linting out into separate steps for the main typescript programing and tests. * Fixed linting issues in ts tests.
This commit is contained in:
parent
ce9148943c
commit
6a649012bc
9 changed files with 15 additions and 10 deletions
|
@ -6,7 +6,7 @@ testPerm({ write: true }, function makeTempDirSyncSuccess() {
|
|||
const dir1 = deno.makeTempDirSync({ prefix: "hello", suffix: "world" });
|
||||
const dir2 = deno.makeTempDirSync({ prefix: "hello", suffix: "world" });
|
||||
// Check that both dirs are different.
|
||||
assert(dir1 != dir2);
|
||||
assert(dir1 !== dir2);
|
||||
for (const dir of [dir1, dir2]) {
|
||||
// Check that the prefix and suffix are applied.
|
||||
const lastPart = dir.replace(/^.*[\\\/]/, "");
|
||||
|
@ -44,7 +44,7 @@ testPerm({ write: true }, async function makeTempDirSuccess() {
|
|||
const dir1 = await deno.makeTempDir({ prefix: "hello", suffix: "world" });
|
||||
const dir2 = await deno.makeTempDir({ prefix: "hello", suffix: "world" });
|
||||
// Check that both dirs are different.
|
||||
assert(dir1 != dir2);
|
||||
assert(dir1 !== dir2);
|
||||
for (const dir of [dir1, dir2]) {
|
||||
// Check that the prefix and suffix are applied.
|
||||
const lastPart = dir.replace(/^.*[\\\/]/, "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue