summaryrefslogtreecommitdiff
path: root/cli/tests/lint
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/lint')
-rw-r--r--cli/tests/lint/expected.out26
-rw-r--r--cli/tests/lint/expected_glob.out2
-rw-r--r--cli/tests/lint/file1.js5
-rw-r--r--cli/tests/lint/file2.ts3
4 files changed, 12 insertions, 24 deletions
diff --git a/cli/tests/lint/expected.out b/cli/tests/lint/expected.out
index 0b0654298..57af15971 100644
--- a/cli/tests/lint/expected.out
+++ b/cli/tests/lint/expected.out
@@ -1,12 +1,12 @@
-(no-var) `var` keyword is not allowed
-var a = 1,
-~~~~~~~~~~
+(ban-untagged-ignore) Ignore directive requires lint rule code
+// deno-lint-ignore
+~~~~~~~~~~~~~~~~~~~
at [WILDCARD]file1.js:1:0
-(single-var-declarator) Multiple variable declarators are not allowed
-var a = 1,
-~~~~~~~~~~
- at [WILDCARD]file1.js:1:0
+(no-empty) Empty block statement
+while (false) {}
+ ~~
+ at [WILDCARD]file1.js:2:14
(no-empty) Empty block statement
} catch (e) {}
@@ -23,14 +23,4 @@ function foo(): any {}
~~~~~~~~~~~~~~~~~~~~~~
at [WILDCARD]file2.ts:6:0
-(ban-untagged-ignore) Ignore directive requires lint rule code
-// deno-lint-ignore
-~~~~~~~~~~~~~~~~~~~
- at [WILDCARD]file2.ts:8:0
-
-(no-empty) Empty block statement
-while (false) {}
- ~~
- at [WILDCARD]file2.ts:9:14
-
-Found 7 problems
+Found 5 problems
diff --git a/cli/tests/lint/expected_glob.out b/cli/tests/lint/expected_glob.out
new file mode 100644
index 000000000..3e3ebd649
--- /dev/null
+++ b/cli/tests/lint/expected_glob.out
@@ -0,0 +1,2 @@
+[WILDCARD]
+Found 5 problems
diff --git a/cli/tests/lint/file1.js b/cli/tests/lint/file1.js
index d74b6f47a..737f26818 100644
--- a/cli/tests/lint/file1.js
+++ b/cli/tests/lint/file1.js
@@ -1,3 +1,2 @@
-var a = 1,
- b = 2,
- c = 3;
+// deno-lint-ignore
+while (false) {}
diff --git a/cli/tests/lint/file2.ts b/cli/tests/lint/file2.ts
index f0f3a3ba3..10c709ba2 100644
--- a/cli/tests/lint/file2.ts
+++ b/cli/tests/lint/file2.ts
@@ -4,6 +4,3 @@ try {
// deno-lint-ignore no-explicit-any require-await
function foo(): any {}
-
-// deno-lint-ignore
-while (false) {}